You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/widgets/using-ui-components/README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ You can see an example of a widget with most of the available UI components. The
12
12
13
13
## How to use it?
14
14
- Create [app/code/Vendor/Module/etc/widget.xml](../../../etc/widget.xml) file inside your module.
15
+
- Create a widget class that will extend from ```Grasch\AdminUi\Block\Widget\AbstractWidget```.
15
16
- You have to add only one parameter ```block``` with class ```Grasch\AdminUi\Block\Adminhtml\Widget\Ui\Components```.
16
17
-```namespace``` is the name of your form.xml file.
17
18
```xml
@@ -27,3 +28,17 @@ You can see an example of a widget with most of the available UI components. The
27
28
```
28
29
- Create [app/code/Vendor/Module/view/adminhtml/ui_component/form.xml](../../../view/adminhtml/ui_component/widget_example_form.xml) file inside your module. Add the UI Components that you need here.
29
30
- Use this class ```Grasch\AdminUi\DataProvider\Widget\DataProvider``` as ```dataProvider``` for your form.
0 commit comments