src/ui/form/components/item/wrappers/toolbar/smart-toolbar.wrapper.component.ts
AbstractFormItemWrapperComponent
| changeDetection | ChangeDetectionStrategy.OnPush |
| templateUrl | ./smart-toolbar.wrapper.component.html |
Methods |
|
Inputs |
| config |
Type : any
|
| Public detectChanges |
detectChanges()
|
|
Returns :
void
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : smart-toolbar.wrapper.component.html
Purpose : Template for Smart Toolbar Wrapper.
Author(s) : Radu Nicoara
Created : Apr 04, 2024
--------------------------------------------------------------------------
-->
<smart-toolbar
[smart-instance-name]="config.instanceName"
[smart-object-name]="config.objectName"
[ngClass]="config.settings?.classList || []">
@for (button of config.buttons; track button.buttonName) {
@if (button.length !== undefined) {
<smart-toolbar-button
[itemId]="button"
[label]="button"
[dataSource]="button.dataSource">
</smart-toolbar-button>
}
@else if (button.buttonType === 'button' || button.buttonType === 'command') {
<smart-toolbar-button
[role]="button.buttonType === 'command' ? 'command' : null"
[action]="button.buttonAction"
[form]="button.buttonForm"
[menuFunction]="button.launchMenuFunction"
[itemId]="button.itemId"
[name]="button.buttonName"
[tooltip]="button.buttonTooltip"
[image]="button.buttonImage"
[icon]="button.buttonIcon"
[label]="button.buttonLabel"
[disabled]="button.enabled === false"
[dataSource]="button.dataSource">
</smart-toolbar-button>
}
@else if (button.buttonType === 'combo') {
<smart-toolbar-combo-button
[itemId]="button.buttonName"
[listItems]="button.listItems">
</smart-toolbar-combo-button>
}
@else if (button.buttonType === 'separator') {
<smart-toolbar-separator>
</smart-toolbar-separator>
}
@else if (button.buttonType === 'spacer') {
<kendo-toolbar-spacer></kendo-toolbar-spacer>
}
@else if (button.buttonType === 'custom') {
<smart-toolbar-custom-item
[componentId]="button.componentId || button.placeholderId"
[bindingContext]="button.context">
</smart-toolbar-custom-item>
}
}
</smart-toolbar>