|
22 | 22 | topic: {value: 'topic', validate: (RED.validators.hasOwnProperty('typedInput')?RED.validators.typedInput('topicType'):function(v) { return true})}, |
23 | 23 | topicType: {value: 'msg'}, |
24 | 24 | style: {value: ''}, |
| 25 | + className: {value: ''}, |
| 26 | + // on state |
25 | 27 | onvalue: {value: true, validate: (RED.validators.hasOwnProperty('typedInput')?RED.validators.typedInput('onvalueType'):function(v) { return true})}, |
26 | 28 | onvalueType: {value: 'bool'}, |
27 | 29 | onicon: {value: '' }, |
28 | 30 | oncolor: {value: ''}, |
| 31 | + // off state |
29 | 32 | offvalue: {value: false, validate: (RED.validators.hasOwnProperty('typedInput')?RED.validators.typedInput('offvalueType'):function(v) { return true})}, |
30 | 33 | offvalueType: {value: 'bool'}, |
31 | 34 | officon: {value: ''}, |
32 | | - offcolor: {value: ''}, |
33 | | - animate: {value: false}, |
34 | | - className: {value: ''} |
| 35 | + offcolor: {value: ''} |
35 | 36 | }, |
36 | 37 | inputs:1, |
37 | 38 | outputs:1, |
|
124 | 125 | <label for="node-input-tooltip"><i class="fa fa-info-circle"></i> Tooltip</label> |
125 | 126 | <input type="text" id="node-input-tooltip" placeholder="optional tooltip"> |
126 | 127 | </div>--> |
127 | | - <!--<div class="form-row"> |
| 128 | + <div class="form-row"> |
128 | 129 | <label for="node-input-custom-icons"><i class="fa fa-picture-o"></i> Icon</label> |
129 | 130 | <select id="node-input-custom-icons" style="width:35%"> |
130 | 131 | <option value="default">Default</option> |
131 | 132 | <option value="custom">Custom</option> |
132 | 133 | </select> |
133 | | - <span style="width:auto; padding-left:20px" class="form-row-custom-icons" for="node-input-animate"> Animate |
134 | | - <input type="checkbox" checked id="node-input-animate" style="display:inline-block; width:auto; vertical-align:baseline;"></span> |
135 | 134 | </div> |
136 | 135 | <div class="form-row form-row-custom-icons"> |
137 | 136 | <label for="node-input-onicon" style="text-align:right;"><i class="fa fa-toggle-on"></i> On Icon</label> |
|
144 | 143 | <input type="text" id="node-input-officon" style="width:120px"> |
145 | 144 | <label for="node-input-offcolor" style="width:50px; text-align:right;">Colour</label> |
146 | 145 | <input type="text" id="node-input-offcolor" style="width:120px"> |
147 | | - </div>--> |
| 146 | + </div> |
148 | 147 | <div class="form-row"> |
149 | 148 | <label style="width:auto" for="node-input-onvalue"><i class="fa fa-envelope-o"></i> When clicked, send:</label> |
150 | 149 | </div> |
|
0 commit comments