doomy/datagrid

There is no license information available for the latest version (1.6.1) of this package.

DataGrid components

1.6.1 2023-04-12 20:50 UTC

This package is auto-updated.

Last update: 2024-04-12 22:57:25 UTC


README

Requirements

  • bootstrap
  • font awesome

Usage

public function createComponentClientDataGrid(): IComponent
{
    $dataGrid =  new DataGrid(
        $this->dataGridEntryFactory,
        $this->data,
        DataEntity::class,
        [],
    );
    $dataGrid->setReadOnly(FALSE);
    $dataGrid->onEvent(DataGrid::EVENT_ITEM_SAVED, function($values) {
        $this->data->save(DataEntity::class, $values);
    });
    return $dataGrid;
}

note: readme is work in progress, to be updated