File

projects/angular/components/ui-grid/src/header/ui-grid-header-button.directive.ts

Description

Header button definition directive.

Metadata

Index

Inputs

Inputs

type
Type : "action" | "main" | "inline"

Configure if the button is the grid main action, or a selection action.

visible
Type : boolean
Default value : true

Configure if the button is visible or not.

import {
    ContentChild,
    Directive,
    Input,
    TemplateRef,
} from '@angular/core';

/**
 * Header button definition directive.
 *
 * @export
 */
@Directive({
    selector: '[uiHeaderButton], ui-header-button',
})
export class UiGridHeaderButtonDirective {
    /**
     * Configure if the button is the grid main action, or a selection action.
     *
     */
    @Input()
    type?: 'action' | 'main' | 'inline';

    /**
     * Configure if the button is visible or not.
     *
     */
    @Input()
    visible = true;

    /**
     * @internal
     * @ignore
     */
    @ContentChild(TemplateRef, {
        static: true,
    })
    html?: TemplateRef<any>;
}

results matching ""

    No results matching ""