Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ToolbarComponent

Toolbar component

Usage:

// Individual module import
import { ToolbarModule } from 'patternfly-ng/toolbar';
// Or
import { ToolbarModule } from 'patternfly-ng';

// NGX Bootstrap import { BsDropdownConfig, BsDropdownModule } from 'ngx-bootstrap/dropdown';

@NgModule({ imports: [BsDropdownModule.forRoot(), ToolbarModule,...], providers: [BsDropdownConfig] }) export class AppModule(){}

Optional:

import { ToolbarConfig, ToolbarView } from 'patternfly-ng/toolbar';

Hierarchy

  • ToolbarComponent

Implements

  • DoCheck
  • OnInit

Index

Constructors

constructor

Properties

actionTemplate

actionTemplate: TemplateRef<any>

The name of the template containing actions

config

The toolbar config containing component properties

onActionSelect

onActionSelect: EventEmitter<Object> = new EventEmitter()

The event emitted when an action (e.g., button, kebab, etc.) has been selected

onFilterChange

onFilterChange: EventEmitter<Object> = new EventEmitter()

The event emitted when a filter has been changed

onFilterFieldSelect

onFilterFieldSelect: EventEmitter<Object> = new EventEmitter()

The event emitted when a field menu option is selected

onFilterSave

onFilterSave: EventEmitter<Object> = new EventEmitter()

The event emitted when a filter has been saved

onFilterTypeAhead

onFilterTypeAhead: EventEmitter<Object> = new EventEmitter()

The event emitted when the user types ahead in the query input field

onSortChange

onSortChange: EventEmitter<Object> = new EventEmitter()

The event emitted when the sort has changed

onViewSelect

onViewSelect: EventEmitter<Object> = new EventEmitter()

The event emitted when a view has been selected

viewTemplate

viewTemplate: TemplateRef<any>

The name of the template containing views

Methods

clearFilter

  • clearFilter($event: Filter[]): void

ngDoCheck

  • ngDoCheck(): void

ngOnInit

  • ngOnInit(): void

resetFilterField

  • resetFilterField(): void

Protected setupConfig

  • setupConfig(): void

Generated using TypeDoc