Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d3c142

Browse files
authored
Merge pull request magento#6159 from serhiyzhovnir/update-Hidden-UI-component-documentation
Update the documentation for the Hidden UI component
2 parents 724d04a + b1e5716 commit 0d3c142

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Loading

src/guides/v2.2/ui_comp_guide/components/ui-hidden.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,33 @@ The Hidden component is a form element that implements the [HTML](https://glossa
1212
| `component` | The path to the component’s JS constructor in terms of RequireJS. | String | `Magento_Ui/js/form/element/abstract` |
1313
| `template` | The path to the component’s `.html` template. | String | `ui/form/element/hidden` |
1414

15+
## Source files
16+
17+
Extends [`UiElement`]({{ page.baseurl }}/ui_comp_guide/concepts/ui_comp_uielement_concept.html):
18+
19+
- [app/code/Magento/Ui/view/base/web/js/form/element/abstract.js]({{ site.mage2bloburl }}/{{ page.guide_version }}/app/code/Magento/Ui/view/base/web/js/form/element/abstract.js)
20+
- [app/code/Magento/Ui/view/base/web/templates/form/element/hidden.html]({{ site.mage2bloburl }}/{{ page.guide_version }}/app/code/Magento/Ui/view/base/web/templates/form/element/hidden.html)
21+
22+
## Examples
23+
24+
### Integrate the Hidden component with the Form component
25+
26+
This example integrates the Hidden component with the [Form]({{ page.baseurl }}/ui_comp_guide/components/ui-form.html) component.
27+
28+
```xml
29+
<form>
30+
...
31+
<fieldset>
32+
...
33+
<hidden name="hidden_example">
34+
<settings>
35+
<value>hidden value</value>
36+
</settings>
37+
</hidden>
38+
</fieldset>
39+
</form>
40+
```
41+
42+
### Result
43+
44+
![Hidden Component example]({{ site.baseurl }}/common/images/ui_comps/ui-hidden-result.png)

0 commit comments

Comments
 (0)