$data[] = [
'label' => '', // Name of your action button.
'href' => '#', // You can either use the link, or JS, or both.
'iclass' => $values->isactive ?? '0' == '1' ? 'fa fa-eye' : 'fa fa-eye-slash', // Add an icon before the label.
'arialabel' => 'eye', // Add an aria-label string to your icon.
'title' => $values->isactive ?? '0' == '1' ? get_string('deactivate', 'local_taskflow') : get_string('activate', 'local_taskflow'), // We be displayed when hovered over icon.
'id' => $values->id . '-' . $this->uniqueid,
'name' => $this->uniqueid . '-' . $values->id,
'methodname' => 'toggleitem', // The method needs to be added to your child of wunderbyte_table class.
'nomodal' => true,
'data' => [ // Will be added eg as data-id = $values->id, so values can be transmitted to the method above.
'id' => $values->id,
],
];
table::transform_actionbuttons_array($data);
When actionbutton is added to a table like:
hover over display of title is currently not working, should be fixed