NAME

CallBackery::GuiPlugin::AbstractCardlist - Base class for a cardlist plugin

SYNOPSIS

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

DESCRIPTION

The base class for cardlist plugins, derived from CallBackery::GuiPlugin::AbstractTable

ATTRIBUTES

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

cardCfg

Configuration of the card list cards

return [
    layout => {
        class => 'qx.ui.layout.Grid',
        setFunctions => {
            setColumnFlex => [
                [ 0, 1 ],
                [ 5, 1 ],
            ],
            setColumnWidth => [
                [ 5, 200 ],
            ],
            setColumnAlign => [
                [ 5, 'right', 'bottom' ],
            ],
            setSpacingX => [ [20], ],
            setSpacingY => [ [3],  ],
        },
    },
    form => [
        {
            label => {
                addSet => { row => 0, column => 0, },
                set => {
                    value => trm('Type'),
                },
            },
            field => {
                addSet => { row => 1, column => 0, },
                class  => 'qx.ui.form.TextField',
                key    => 'oatkg_label',
                set    => { width => 100, readOnly => true },
            },
        },
    ],
];

tableCfg

is not used for card plugins, use cardCfg instead.

METHODS

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

getData ('allCardData');

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

getTableRowCount({formData=>{}})

is not used for card plugins.

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

Create export button. Not yet implemented for card plugins.

LICENSE

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

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

AUTHOR

Fritz Zaucker <fritz.zaucker@oetiker.ch>

HISTORY

2020-09-01 fz 1.0 first version