When working on large or small-scale projects in CS-Cart, the management of CRUD operations in the administration panel can take time.
This is where the Datagrid CS-CART come – a personalized solution designed for radically Reduce development time and deliver faster projects With a minimum of effort.
What is Datagrid CS-Cart?
CS-Cart Datagrid is a versatile and reusable CRUD component built specifically for CS-Cart and Admin panels. Moreover, It simplifies CRUD operations, making the development of the CS card faster and easier.
How is Datagrid time reduction and profitable for your projects?
Datagrid helps save time by managing current tasks such as filtering, sorting, export and bulk actions. In addition, It is easy to configure and use, which makes CRUD management faster and more fluid.
In CS-Cart projects, Basic tasks such as the creation or updating of recordings can be carried out in hours instead of days. Therefore, This means faster delivery, lower costs and happier customers.
Key characteristics of data
Datagrid is built using the main CS-Cart tools, so it works well and works well. Here are the features
- Paging
- Sorting
- Filtration
- Research
- Bulk actions (loose deletion, update, etc.)
- Export data (CSV, XML)
- In the modifiable fields
- Save research
How developers easily develop a Crud using Datagrid
How Datagrid works
To use Datagrid in a CS-Cart project, the CS-Cart developer simply creates the Datagrid, View and Road Handler files. After that, personalize the datagrid as needed, and the CRUD interface is ready
Example of Datagrid
<?php
namespace DataGrid;
use Tygh\Addons\Wkdatagrid\DataGrid\src\DataGrid;
class EmployeeDataGrid extends DataGrid
{
public function prepareQueryBuilder() {
// sql queries
}
public function prepareColumns(): void
{
$this->addColumn([
'index' => 'e.name', //table column name
'label' => __('name'),
'type' => 'string', //Boolean, Date, Integer, Text, Datetime
'sortable' => true,
'searchable' => true,
'filterable' => true,
'closure' => function($row) {
return ($row->status) ? 'Active' : 'Disabled';
} //customization to the value.
]);
}
public function prepareActions()
{
$this->addAction([
'icon' => 'ty-icon-delete',
'title' => __('delete'),
'class' => 'cm-ajax cm-confirm',
'method' => 'POST',
'type' => 'delete',
'url' => function ($row) {
return fn_url("wk_erp_saved.delete?id=$row->id", 'A');
},
]);
}
}
Discount route
<?php
namespace EmployeeController;
use Tygh\Tygh;
use Tygh\Registry;
use DataGrid\EmployeeDataGrid;
require_once(Registry::get('config.dir.addons') . 'wk_datagrid/src/DataGrid/src/Http/helpers.php');
class Employee extends BaseController
{
public function __construct($mode)
{
parent::__construct($mode);
$this->setRunMode(['m_delete', 'm_update', 'update', 'delete', 'manage']);
if (in_array($this->mode, $this->runMode)) {
$this->$mode();
}
}
public function manage()
{
list($lists, $search) = fn_datagrid(EmployeeDataGrid::class)->process();
Tygh::$app['view']->assign('lists', $lists);
Tygh::$app['view']->assign('search', $search);
}
}
Datagrid
{include file="addons/wk_datagrid/data-grid.tpl"
search_form_dispatch="emp.manage"
saved_search_name="emp"
export=true
is_editable="emp.m_update"
page_title=__('emp.erp_templates')
search_form_prefix="emp"
content_id="content_emp"
name="emp"
search_label="Search Templates"
data=$lists
hook="emp"
column_width=[10,10,25,30,10]
}
Why use Datagrid?
- Quick configuration: No need to manually manage sorting, pagination, data export or logic filtering.
- Reusable architecture: Define columns, filters, actions and requests in a clean and organized structure.
- Fully expandable: Easily integrates with add-ons or personalized admin modules.
- Performance focused: Designed to effectively manage large data sets using optimized SQL.
- Integration of the clean user interface: The grids are rendered using native Smarty models or can be personalized.
Support:
Have any requests, do not hesitate to ask by creating a ticket
In addition to that, you can explore our CS-Cart development services and our quality CS-Cart modules.
Current product version – 1.0
Berita Olahraga
Lowongan Kerja
Berita Terkini
Berita Terbaru
Berita Teknologi
Seputar Teknologi
Berita Politik
Resep Masakan
Pendidikan
Berita Terbaru
Berita Terbaru
Berita Terbaru