Enable or disable ui text control with out clearing value? Typically you delete payload from a message such that message is just msg.enabled true or false. But this has the side effect of clearing the ui-text value as well. Is there a trick to avoid this?
Yes. Don't delete the payload
The current behaviour of the Text Display node does appear to be inconsistent with that of the Text Input node. Disabling the Text Input node with no msg.payload leaves the displayed value as is rather than clearing it.
Exactly! In fact most of the default UI nodes I have used so far, you can enable or disable without payload, and the current content is left unchanged. Any plans to standardize the behavior? I often disable an object... to show feedback that an update in progress. It gives the operator a clean indicator that the state or data of the ui object is stale. And since not all ui objects support a default message (like charts do), the disable while updating then enable is applicable. It would be nice, as well, if every ui object had a 'blank' feature supported to give operator a clear indication of pending update (of ui object content).
hmm yeah something slight odd going on.. if you change it to be {{value}} it behaves as you expected... will investigate
Oh! Cool, looking forward to what you find.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.