Download the PHP package loki/magento2-admin-components without Composer
On this page you can find all versions of the php package loki/magento2-admin-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download loki/magento2-admin-components
More information about loki/magento2-admin-components
Files in loki/magento2-admin-components
Package magento2-admin-components
Short Description Admin Panel grids and forms created via Loki Components
License OSL-3.0
Informations about the package magento2-admin-components
Loki_AdminComponents
This Magento 2 module allows for developers to build admin grids and admin forms in the Magento 2 Admin Panel in a faster way. No more ugly UiComponents that nobody understands. Create grids and forms quickly. And gradually add features to them, without getting stuck.
The LokiAdminComponents are based on the Loki Components module which is also used in the LokiCheckout. However, this admin tool shows that the Loki Extension suite can be applied in many more places.
Note that this library makes use of Alpine.js in the Magento Admin Panel. As for CSS, we stick to the native Magento Admin Panel classes instead: Everything looks the same.
Installation
Getting started with a grid
First create a module that generates a page in the Admin Panel (etc/module.xml, registration.php, a backend controller action class, perhaps acl.xml and menu.xml).
In your new XML layout file, add the following:
And you're done. After refreshing the Magento cache, you now have a product grid.
Refer to the documentation for fine-tuning this grid.
Getting started with a form
Again, first create a module that generates a page in the Admin Panel (etc/module.xml, registration.php, a backend controller action class, perhaps acl.xml and menu.xml).
In your new XML layout file, add the following:
And you're done. After refreshing the Magento cache, you now have a basic product form.
Refer to the documentation for fine-tuning this form.
Examples
As a demo, you could opt to install the following examples:
- YireoTraining_ExampleLokiAdminProducts - a product repository-based grid with various modifications including inline editing of the product name;
- YireoTraining_ExampleLokiAdminCmsPage - a bare-bones repository-based implementation that is ugly, but it shows what you get with minimal effort;
- YireoTraining_ExampleLokiAdminArrayGrid - a bare-bones array-based grid;
- YireoTraining_YireoTraining_ExampleLokiAdminEavEntityType - a bare-bones collection-based grid to display EAV entity types;
Features
Grid features
- Autodetection of columns
- Search
- Pagination
- Sorting columns
- Custom cell templates
- Inline editing
- Filters
- Mass Actions
- Custom cell templates
- ... (more docs coming soon)
Grid provider handlers
repositorycollectionarray
Form features
- Autodetection of columns
- Field-types (
select,input,number,datetime, etc) with option to configure more - Form actions (*Back, Save and Close, Save and Continue, Delete, etc)
- ... (more docs coming soon)
Documentation
See https://loki-extensions.com/docs/admin-components
Todo
- Extension Attributes
- Filesystem navigation
- Tiles instead of grid layout
- Delete add confirmation
- Add custom SearchCriteriaBuilder via repository addons
- Switch field for enabled/disabled column within grid
- Export selected to CSV, JSON, XSLX
Current status
All versions of magento2-admin-components with dependencies
ext-pcre Version *
loki/magento2-components Version ^2.6
loki/magento2-css-utils Version ^1.0
magento/framework Version ^102.0 | ^103.0
magento/module-backend Version ^101.0 | ^102.0
magento/module-catalog Version ^102.0 | ^103.0 | ^104.0
magento/module-customer Version ^102.0 | ^103.0
magento/module-directory Version ^100.0
magento/module-eav Version ^100.0 | ^101.0 | ^102.0
magento/module-sales Version ^103.0
magento/module-store Version ^101.0
magento/module-ui Version ^101.0
php Version >=8.2 <8.6
yireo/magento2-csp-utilities Version ^1.0