-
Notifications
You must be signed in to change notification settings - Fork 0
Custom grid toolbar
Mart Weghorst edited this page Aug 19, 2024
·
1 revision
In order to add a custom toolbar to a grid you will have to add an extra component to the grid. this grid has within it a json_encoded array of all the grid elements present. A list of possible grid elements is listed below.
$data = array(
"name" => "gridToolBar",
"type" => array(
$gridToolbar_Type
),
"definition" => json_encode(array(
\Application\Document\Parameter::GRIDTOOLITEM_TITLE,
\Application\Document\Parameter::GRIDTOOLITEM_MOBILE_FILTER,
\Application\Document\Parameter::GRIDTOOLITEM_MOBILE_REFRESH,
\Application\Document\Parameter::GRIDTOOLITEM_MOBILE_DROPDOWN
))
);
$returnPar4 = $mongoObjectFactory->createAndAdd($typeComp, (string) $returnComponentPickGrid, $typePar, $data);
GRIDTOOLBARITEMS
GRIDTOOLITEM_TITLE
GRIDTOOLITEM_NUMBERS
GRIDTOOLITEM_SEARCH
GRIDTOOLITEM_FILTER
GRIDTOOLITEM_ADVANCED_FILTER
GRIDTOOLITEM_REFRESH
GRIDTOOLITEM_DROPDOWN
GRIDTOOLITEM_MOBILE_SEARCH
GRIDTOOLITEM_MOBILE_FILTER
GRIDTOOLITEM_MOBILE_ADVANCED_FILTER
GRIDTOOLITEM_MOBILE_REFRESH
GRIDTOOLITEM_MOBILE_DROPDOWN
tes