Skip to content

Commit 369dd77

Browse files
author
Dave Conway-Jones
committed
remove validation from dropdown with no options
(so can all be injected)
1 parent 99d49f1 commit 369dd77

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
**Enhancements**
55

6+
- Allow Tabs to be hidden or disabled dynamically from a ui_control msg.
67
- Finally remove deprecated second output from ui_chart node.
78
- Allow ui_form to be submitted with empty fields (if they are not required)
89

@@ -12,6 +13,8 @@
1213
- Add startsWith polyfill for IE11
1314
- Ensure active sidebar menu item is highlighted - Issue #472
1415
- Sanitise display of html input - Issue #473
16+
- Respect msg.socketid to return msg back to selected session.
17+
- Allow dropdown to have 0 pre-configured values, by removing validation.
1518

1619
### 2.13.2: Maintenance Release
1720

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ for futher details.
111111
- **Template** - the template node allows the user to specify and create their own widgets within the framework using HTML, Javascript. This is an Angular.js widget. You may also use this to override the built in CSS styles.
112112
- **Text** - A read only widget, the layout of the `label`, and `value` can be configured.
113113
- **Text input** - text input box, with optional label, can also support password, email and colour modes.
114-
- **UI-Control** - allows some dynamic control of the dashboard. Sending a `msg.payload` of the tab number (from 0) or tab_name will switch to that tab. Groups can be hidden and made visible via a msg like `{"group":{"hide":["tab_name_group_name_with_underscores"],"show":["tab_name_another_group"],"focus":true}}`. Outputs a `msg.payload` for every browser *connect* and *loss* and every tab *change* that can be used to trigger other actions.
114+
- **UI-Control** - allows some dynamic control of the dashboard. Sending a `msg.payload` of the tab number (from 0) or tab_name will switch to that tab. Tabs can be enabled/disabled/hide/show via msg like `{"tabs":{"hide":["tab_name_with_underscores"],"show":["another_tab_name"],"disable":["unused_tab_name"]}}`.
115+
Groups can be hidden and made visible via a msg like `{"group":{"hide":["tab_name_group_name_with_underscores"],"show":["tab_name_another_group"],"focus":true}}`. Outputs a `msg.payload` for every browser *connect* and *loss*, and every tab *change*. This can be used to trigger other actions like resetting the visibility of tabs and groups.
115116

116117
**Tip:** The *Text* widget will accept html - so you can use it together with the *fa-icons* we
117118
already use to create indicator type widgets.

nodes/ui_dropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
height: {value: 0},
2222
passthru: {value: true},
23-
options: {value:[{value: '', label : ''}], validate:function(value) { return value.length > 0; }},
23+
options: {value:[{value: '', label : ''}]},
2424
payload: {value: ''},
2525
topic: {value: ''}
2626
},

0 commit comments

Comments
 (0)