import type { IActionColumnDesc , IAction , IGroupAction } from '../../model' ; import ColumnBuilder from './ColumnBuilder' ; export default class ActionsColumnBuilder extends ColumnBuilder < IActionColumnDesc > { constructor ( ) { super ( 'actions' , '' ) ; } param action action ( action ) { return this . actions ( [ action ] ) ; } param actions actions ( actions ) { if ( ! this . desc . actions ) { this . desc . actions = [ ] ; } this . desc . actions ! . push ( ... actions ) ; return this ; } param action groupAction ( action ) { return this . groupActions ( [ action ] ) ; } param actions groupActions ( actions ) { if ( ! this . desc . groupActions ) { this . desc . groupActions = [ ] ; } this . desc . groupActions ! . push ( ... actions ) ; return this ; } } returns { ActionsColumnBuilder } export function buildActionsColumn ( ) { return new ActionsColumnBuilder ( ) ; }