A text input field with an icon.
The following syntax shows how an Input control can be easily added to a ribbon:
placeholder:"Type to search"
Related sample: Ribbon. Input
You can provide the following properties in the configuration object of an Input control.
You can show or hide Input with the methods of Ribbon:
You can also disable and enable inputs:
Setting/getting Input value
You can use the setState() and getState() methods of Ribbon to change and access the value of Input.
To fill in Input with text, call setState() with a key-value pair as a parameter, where the key is the ID of the input and the value is the text:
To get the text that is currently inside the Input control, call getState():