igniteui-react-core
Version:
Ignite UI React Core.
47 lines (46 loc) • 1.86 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 { __extends } from "tslib";
import { NativeUIElementBridge } from "./NativeUIElementBridge";
import { markType } from "./type";
/**
* @hidden
*/
var SpanBridge = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SpanBridge, _super);
function SpanBridge() {
return _super !== null && _super.apply(this, arguments) || this;
}
SpanBridge.prototype.addHandler = function (a, b, c, d) {
};
SpanBridge.prototype.getValue = function (a, b) {
switch (b) {
case 10: return a.getText();
case 31: return a.getStyleProperty("white-space") != "nowrap";
}
return _super.prototype.getValue.call(this, a, b);
};
SpanBridge.prototype.removeHandler = function (a, b, c, d) {
};
SpanBridge.prototype.setValue = function (a, b, c) {
_super.prototype.setValue.call(this, 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 = markType(SpanBridge, 'SpanBridge', NativeUIElementBridge.$);
return SpanBridge;
}(NativeUIElementBridge));
export { SpanBridge };