Skip to content

Commit 1be3511

Browse files
author
Jelte Lagendijk
committed
Add button icon option in Modeler
1 parent 1532dcd commit 1be3511

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/SearchInput/SearchInput.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@
2323
<category>General</category>
2424
<description>Placeholder for when the inputbox is empty</description>
2525
</property>
26+
<property key="buttonIconClass" type="string" required="true" defaultValue="search">
27+
<caption>Button icon</caption>
28+
<category>General</category>
29+
<description>Glyphicon that is used in the button. This has the value "glyphicon glyphicon-" + this value. See http://getbootstrap.com/components/#glyphicons</description>
30+
</property>
2631
<property key="buttonstyle" type="enumeration" required="true" defaultValue="default">
2732
<caption>Button style</caption>
2833
<category>General</category>
29-
<description>Button color</description>
34+
<description>Button color using a Bootstrap class</description>
3035
<enumerationValues>
3136
<enumerationValue key="default">Default</enumerationValue>
3237
<enumerationValue key="inverse">Inverse</enumerationValue>

src/SearchInput/widget/template/SearchInput.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<input type="text" class="form-control" data-dojo-attach-point="searchInputNode" />
55
<span class="input-group-btn searchInputButton">
66
<button class="btn btn-${buttonstyle}" type="button" data-dojo-attach-point="searchSelectNode">
7-
<span class="glyphicon glyphicon-search"></span>
7+
<span class="glyphicon glyphicon-${buttonIconClass}"></span>
88
</button>
99
</span>
1010
</div>

test/Test.mpr

8 KB
Binary file not shown.

test/widgets/SearchInput.mpk

128 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)