header-action

Overview

An action can be linked to a header cell, which will be triggered when a user clicks on the cell. In this case, the specified on-press function will execute.

Note: Unlike row and cell actions, this function does not have access to $selection, as they are only rendered once per column.

See more information in the guide on object-table actions.

Basic Example

main.view.xml
<object-table ...>
    <column heading="Name">
        <header-action icon="fa-angle-right" on-press="$:headerAction()" />
    </column>
</object-table>

Standard Attributes

on-press

See column > action > on-press

validate

See column > action > validate

Advanced Attributes

icon

See column > action > icon

Last updated