We have a dynamic form where we want to display multiple StaticTextItem items.
The form fields' widths are variable and, in order to control the layout, we use "clipStaticValue : true" on the StaticTextItem items so they all [potentially] use the ellipse and have identical _maximum_ width.
We'd like to have an icon on those StaticTextItem items to the right of the _text_ value (as opposed to the right of the _form field_).
I used http://www.smartclient.com/#formIcons as a start for my little example.
Here is the modified version:
Is there a way to have the icon next to the right-hand side of the text instead of far out to the right ?
We're using v11.0p_2016-08-13/Pro
Thanks !
-C
The form fields' widths are variable and, in order to control the layout, we use "clipStaticValue : true" on the StaticTextItem items so they all [potentially] use the ellipse and have identical _maximum_ width.
We'd like to have an icon on those StaticTextItem items to the right of the _text_ value (as opposed to the right of the _form field_).
I used http://www.smartclient.com/#formIcons as a start for my little example.
Here is the modified version:
Code:
isc.DynamicForm.create({ fields : [ {name: "severityLevel", width : 400, title: "Severity Level", wrapTitle: false, editorType: "StaticTextItem", defaultValue: "Severity 2", icons: [{ src: "other/help.png" }] }, {name: "severityLevel2", width : 400, title: "Severity Level", wrapTitle: false, editorType: "StaticTextItem", defaultValue: "Severity with a much longer value...", icons: [{ src: "other/help.png" }] } ] });
We're using v11.0p_2016-08-13/Pro
Thanks !
-C
Comment