We've noticed that there isn't an icon prompt property listed in the library for Labels (thought there is one for statictextitem). Is this not supported for label canvases? Or did I overlook something? Thanks.
Announcement
Collapse
No announcement yet.
X
-
Another question about labels: With static text items, we are able to set the property below so that we could directly insert a font-style without needing a css style name but I cannot figure out how to do it for labels (if there is a way). Currently in our product, only static text item is available for use but when a gridlayout within a vlayout only contains a static text, then the grid layout is pointless. We want to eliminate the grid layout layer when possible, but cannot do this if we can't provide similar functionality for "font style properties".
Code:isc.StaticTextItem.addProperties({ getTextBoxStyle: function (){ var style=""; if(this.$cwBaseStyle!=null) return this.$cwBaseStyle; if(this.styleName!=null){ style+=this.styleName+"'"; }else{ style = "staticTextItem' STYLE='"; if (this.fontProperties != null) { style+=this.fontProperties; } } return style; }
Comment