Hidden component
The Hidden component is a form element that implements the HTML <input type="hidden">
field.
Options
Option | Description | Type | Default |
---|---|---|---|
component | The path to the component’s JS constructor in terms of RequireJS. | String | Magento_Ui/js/form/element/abstract |
template | The path to the component’s .html template. | String | ui/form/element/hidden |
Source files
Extends UiElement
:
- app/code/Magento/Ui/view/base/web/js/form/element/abstract.js
- app/code/Magento/Ui/view/base/web/templates/form/element/hidden.html
Examples
Integration
This example integrates the Hidden component with the Form component.
Copied to your clipboard<form>...<fieldset>...<hidden name="hidden_example"><settings><value>hidden value</value></settings></hidden></fieldset></form>
Result