Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions EnumClass/src/EnumClass/EnumClass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
<attributeType name="String"/>
<attributeType name="Enum"/>
</attributeTypes>
</property>
<property key="showLabel" type="boolean" required="true" defaultValue="false">
<caption>Print selection</caption>
<category>Appearance</category>
<description>Whether or not the selected enum value should be displayed on screen as span element</description>
</property>
<property key="enumvalues" type="object" isList="true" required="false">
<caption>Values</caption>
Expand Down
3 changes: 3 additions & 0 deletions EnumClass/src/EnumClass/widget/EnumClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ define([
}

this.element = domConstruct.create("span");
if (!this.showLabel) {
domAttr.set(this.element, "style", "display:none;");
}
this.domNode.appendChild(this.element);

switch (this.applyToEnum) { //Select the right element to apply the class too
Expand Down