CallBackery::GuiPlugin::AbstractTable - Base Class for a table plugin


 use Mojo::Base 'CallBackery::GuiPlugin::AbstractTable';


The base class for table plugins, derived from CallBackery::GuiPlugin::AbstractForm


The attributes of the CallBackery::GuiPlugin::AbstractForm class and these:


a table configuration

 return [
        label => trm('Id'),
        type => 'number',
        flex => 1,
        key => 'id',
        sortable => true,
        label => trm('Date'),
        type => 'str',
        flex => 2
        key => 'date'
        label => trm('Content'),
        type => 'str',
        flex => 8,
        key => 'date'


All the methods of CallBackery::GuiPlugin::AbstractForm plus:

getData ('tableData|tableRowCount',tableDataRequest);

Return the requested table data and pass other types of request on to the upper levels.


return data appropriate for the remote table widget


return the number of rows matching the given formData

makeExportAction(type => 'XLSX', filename => 'export-"now"', label => 'Export')

Create export button. The default type is XLSX, also available is CSV.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


Copyright (c) 2013 by OETIKER+PARTNER AG. All rights reserved.


Tobias Oetiker <>


 2013-12-16 to 1.0 first version