This is how it looks like right now:
And here is the code:
file: TABLENAME.php
function: TABLENAME_batch_actions(&$args) { ... }
According to the docs (https://bigprof.com/appgini/help/advanc ... ch-actions), you have to return an array of arrays like this:
Code: Select all
function TABLENAME_batch_actions(&$args){
return array(
array(
'title' => 'Print mail labels',
'function' => 'print_mail_labels',
'icon' => 'th-list'
)
);
}
Code: Select all
[ 'title' => 'You can use HTML here: <b>bold</b> / <i>italic</i> / <u>underlined</u>', 'icon'=>'cog', 'function' => 'test']
- text-primary (dark blue*)
- text-info (blue)
- text-success (green)
- text-warning (yellow)
- text-danger (red)
You can use these classes in your title, for example:
Code: Select all
[ 'title' => 'This contains <b class="text-info">info</b> text', 'icon'=>'cog', 'function' => 'test'],
Code: Select all
return [
[ 'title' => 'This contains formatted and multiline text:<br /><b>bold</b> / <i>italic</i> / <u>underlined</u>', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'This contains <b class="text-info">info</b> text', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'This contains <b class="text-primary">primary</b> text', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'This contains <b class="text-success">success</b> text', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'This contains <b class="text-warning">warning</b> text', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'This contains <b class="text-danger">danger</b> text', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'This contains <b class="text-muted">muted</b> text', 'icon'=>'cog', 'function' => 'test'],
[ 'title' => 'You can even <b class="text-danger">colorize</b> the icon only', 'icon'=>'cog text-danger', 'function' => 'test']
];
I almost forgot to say there is another post about batch actions menu here where peebee mentions the use of 'class': https://forums.appgini.com/phpbb/viewto ... atch#p7379
Hope you like it and use it!
Regards,
Jan
PS: These are screenshots of my current project in which I'm generating QRCode-Labels for printing (Avery Zweckform DIN A4 and Dymo endless labels) and make use of barcode-scanning, both right within AppGini. If you are interested, you may have a look here and scroll down to the very bottom of the page: https://www.bizzworxx.de/en/appgini-improvements/