When adding the option type E to a table view, each row will have an edit option in the tool bars of the far right.
To add the edit tool, from the init Sections module add the option type E.
$PAGES_CONTENT->setOption([
'name' => ['en'=>'PAGES', 'es'=>'VER PAGINAS', 'fr'=>'VOIR PAGES'],
'privilege' => 5, 'type' => 'VDE', 'main' => true
]);
Or use the manual value directly in the page
$options['edit'] = true; // Set false to disable.;
To setup EDIT you need to declare an array $editOption with the following values:
/*Edit Option "E"*/ $editOption= [ 'link' => getPath('BILLING','CLIENTS','EDIT INVOICE','FVUQWCDEPKpa','%ID%').'?other=%COL%', // the format can be anything with any number of wild cards, in this example %ID%, %COL%, etc must match to a column declared in $query 'icon' =>'<i class="far fa-edit faactions"></i>', //optional, these values are default 'title'=> translate('Edit','Editar','Modifier') //optional, these values are default ];
Related native actions
Section-level $actionButton, per-row $rowActions and selected-row bulk controls have different configuration and scope. Use Native Table View custom row actions for the complete manual-action array, placeholders, icons, tooltips, conditions, disabled states, confirmation, keyboard access and its relationship to Edit, Delete and Clone. Full arrays are the modern extensible format; strings remain compatible legacy shorthand. Each destination must authorize its request independently.