Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions guides/v2.1/ui_comp_guide/bk-ui_comps.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,30 @@ A particular instance of a UI component is defined primarily by the following:
3. [Backend/PHP modifiers]({{ page.baseurl }}/ui_comp_guide/concepts/ui_comp_modifier_concept.html).
4. Configuration inside the JavaScript classes.

## UI component used in the frontend design area

* Configured through layout XML.

* The `jsLayout` argument is used to specify information.

```xml
<block name="block-name" template="Magento_Module::path_to_template.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
...
</item>
</argument>
</arguments>
</block>
```

## UI component used in the Adminhtml area

* Configured through dedicated XML file (view/.../ui_component/[ui_component_name.xml])

* Included in layout XML with uiComponent tag

## Things to remember when working with UI components

**UI components have different settings**
Expand Down
24 changes: 24 additions & 0 deletions guides/v2.2/ui_comp_guide/bk-ui_comps.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,30 @@ A particular instance of a UI component is defined primarily by the following:
3. [Backend/PHP modifiers]({{ page.baseurl }}/ui_comp_guide/concepts/ui_comp_modifier_concept.html).
4. Configuration inside the JavaScript classes.

## UI component used in the frontend design area

* Configured through layout XML.

* The `jsLayout` argument is used to specify information.

```xml
<block name="block-name" template="Magento_Module::path_to_template.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
...
</item>
</argument>
</arguments>
</block>
```

## UI component used in the Adminhtml area

* Configured through dedicated XML file (view/.../ui_component/[ui_component_name.xml])

* Included in layout XML with uiComponent tag

## Things to remember when working with UI components

**UI components have different settings**
Expand Down
24 changes: 24 additions & 0 deletions guides/v2.3/ui_comp_guide/bk-ui_comps.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,30 @@ A particular instance of a UI component is defined primarily by the following:
3. [Backend/PHP modifiers]({{ page.baseurl }}/ui_comp_guide/concepts/ui_comp_modifier_concept.html).
4. Configuration inside the JavaScript classes.

## UI component used in the frontend design area

* Configured through layout XML.

* The `jsLayout` argument is used to specify information.

```xml
<block name="block-name" template="Magento_Module::path_to_template.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
...
</item>
</argument>
</arguments>
</block>
```

## UI component used in the Adminhtml area

* Configured through dedicated XML file (view/.../ui_component/[ui_component_name.xml])

* Included in layout XML with uiComponent tag

## Things to remember when working with UI components

**UI components have different settings**
Expand Down