noctalia-shell
noctalia-shell copied to clipboard
[FEATURE] Set ui.input text at runtime, allow clearing a search field
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
- [x] I have read SCOPE.md. This cannot already be done with existing configuration, IPC, a script-backed widget, or a plugin.
Feature type
Developer / API improvement
Feature summary
I want a way to set the ui.input text at runtime, to clear a search field
Motivation / use case
Building a plugin with a search field, I want to be able to clear the search field in certain situations.
value only seeds the field, later renders never overwrite it.
Proposed solution
valueRevprop onui.input(number). When it changes between renders, the field text is replaced byvalueonce. Same pattern asscrollToBottomRev/revealKeyonui.scroll.- Imperative call:
panel.clearInput(key)orpanel.setInputText(key, text), thekeybeing thekeyprop of aui.inputnode,textis the new content ("" to clear)
Alternatives considered
No response
References / related projects
No response
Additional context
No response