
loki admin components
Easy Magento grids & forms
If Magento developers complain about Magento, often building or extending upon Magento Admin Panel grids and forms is named as the foremost nightmare. We can not fix that. What we can do - though - is add a new fresh layer for building Magento admin grids and forms: Easier to create, easier to extend, faster in performance. A fresh slate.
Few lines of code to get started
Loki Admin Components makes it dead-simple to get started
<block
name="yireo-training.example-admin.grid"
template="Loki_AdminComponents::grid.phtml">
<arguments>
<argument name="provider" xsi:type="string">
Magento\Catalog\Api\ProductRepositoryInterface
</argument>
</arguments>
</block>
Just define a block with as template Loki_AdminComponents::grid.phtml and a provider pointing to your data provider: A repository class, a collection class or a custom array class. And Loki takes care of the rest.
The result: A simple grid
Ready for further tuning
The resulting grid is basic but functional: Search, pagination, column sorting. And the Loki Admin Component API allows you to extend things via the XML layout. Using our documentation, you can step-by-step extend the grid with ease.
And whatever applies to grids here, also applied to forms.
Current status
This is open source and work-in-progress
Grid features
- Autodetection of columns
- Search
- Pagination
- Sorting columns
- Custom cell templates
- Inline editing
- Filters
- Mass Actions
- Custom action buttons
- Custom row actions
Form features
- Autodetection of fields
- Custom field types
- Custom form actions