igniteui-react-core
Version:
Ignite UI React Core.
43 lines (42 loc) • 1.61 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { NativeUIElementBridge } from "./NativeUIElementBridge";
import { markType } from "./type";
/**
* @hidden
*/
export let SpanBridge = /*@__PURE__*/ (() => {
class SpanBridge extends NativeUIElementBridge {
addHandler(a, b, c, d) {
}
getValue(a, b) {
switch (b) {
case 10: return a.getText();
case 31: return a.getStyleProperty("white-space") != "nowrap";
}
return super.getValue(a, b);
}
removeHandler(a, b, c, d) {
}
setValue(a, b, c) {
super.setValue(a, b, c);
switch (b) {
case 10:
a.setText(c);
break;
case 11:
a.setStyleProperty("font", c.fontString);
break;
case 31:
a.setStyleProperty("white-space", c ? "normal" : "nowrap");
break;
}
}
}
SpanBridge.$t = /*@__PURE__*/ markType(SpanBridge, 'SpanBridge', NativeUIElementBridge.$);
return SpanBridge;
})();