Version 1.1.63
Introduces experimental responsive support to DataGrids
Specify 'responsive' block in settings to add default list renderer in addition to default table renderer
responsive: {
listClass: 'd-md-none',
tableClass: 'table d-none d-md-table',
listSummaryColumn: 'summary',
listExcludeColumns: ['summary', 'name', 'roles'],
tableExcludeColumns: ['summary'],
},
listClass - will be applied to table, paginator and actions of list renderer. You might want to configure only one to be visible at a time
tableClass - will be applied to table, paginator and actions of table renderer. You might want to configure only one to be visible at a time
listSummaryColumn - mandatory parameter, tells what column will be used as list block collapsed header
In keeper v0.8.2
use like so
<ui:grid url="@action('users.list', inject('params', []))" list-summary="summary" list-exclude="{!! array('summary', 'name', 'roles') !!}" table-exclude="{!! array('summary', 'view') !!}">
<grid:filter search="true" immediate="300"/>
<grid:cell.text name="id" label="ID"/>
<grid:cell.link name="name" label="Name" url="@action('users.edit', ['user' => '{id}'])" sort="true">
{firstName} {lastName}
</grid:cell.link>
<grid:cell.link name="view" label="View Profile" url="@action('users.edit', ['user' => '{id}'])">
{firstName} {lastName}
</grid:cell.link>
<grid:cell.render name="summary" label="Summary" renderer="summary"/>
<grid:cell.link name="email" label="Email" href="mailto:{email}" body="{email}" sort="true"/>
<grid:cell.date name="created" label="Created At" sort="true" sort-dir="desc" sort-default="true"/>
<grid:cell.render name="roles" label="Roles" renderer="roles"/>
<grid:action.link label="Edit" icon="edit" url="@action('users.edit', ['user'=>'{id}'])"/>
<grid:action.delete url="@action('users.edit', ['user'=>'{id}'])"/>
</ui:grid>
Toolkit (toolkit.zip) - Toolkit bundle with default functionality
Keeper (keeper.zip) - Keeper bundle, based on bootstrap 4 that implements typical Spiral-Framework specific admin panel
Autocomplete (autocomplete.zip) - Module for autocomplete input, included in toolkit_full
TinyMCE Wrapper (tinymce.zip) - Module for TinyMCE wrapper
QR code (qrcode.zip) - Module to generate QR codes, included in toolkit_full
Notifications (notifications.zip) - Notifications Center for Keeper