Parameter
Last updated
Last updated
⚙️ Powered by Rock RMS
The parameter control is not actually a visual control. However, you will see it used by various other controls, such as the Picker. Additionally, nearly all commands use the Parameter control to let you pass information to the command handler.
One of the things that makes this such a powerful element is that it supports binding. Both the Name
and Value
properties can be bound to another element. For example, you can bind the Value
property to a text input field that the user fills in and then pass that data back to your block on the server.
Property | Type | Description |
Name | string | The name of the parameter. This can be either the displayed name or the name used, for example, in a query string parameter key. |
Value | object | The value to be associated with the name. |
In the above example, we display a text box to the user as well as a button. When the button is tapped, we transition to a new page. That new page is passed a parameter of q
whose value is whatever the user typed in the search box.