Skip to content

Bugfix: Make sure title of actionbutton in displayed on hover over #96

@eynimeni

Description

@eynimeni

When actionbutton is added to a table like:

    $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);

hover over display of title is currently not working, should be fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions