ng-hub-ui-table
Version:
Highly customizable Angular table and list components with pagination, sorting and filtering support.
16 lines (15 loc) • 572 B
TypeScript
import { RowButton } from './row-button';
/**
* Represents a list-level action button that applies to one or more selected items.
*
* This type extends `RowButton` and provides a handler that receives all selected items.
* It is typically used for bulk actions, such as "Delete Selected", "Export All", etc.
*
* @template T - The type of the item data the button operates on.
*/
export type ListButton<T = any> = RowButton<T> & {
/**
* Function to execute on click, receiving an array of selected items.
*/
handler?: (items: Array<T>) => void;
};