RED-10206: added disabled and tooltip directives for button config.
This commit is contained in:
parent
074f88e66a
commit
b572484950
@ -3,4 +3,6 @@ import { ActionConfig } from './action-config.model';
|
|||||||
|
|
||||||
export interface ButtonConfig extends ActionConfig {
|
export interface ButtonConfig extends ActionConfig {
|
||||||
readonly type?: IconButtonType;
|
readonly type?: IconButtonType;
|
||||||
|
readonly disabled?: boolean;
|
||||||
|
readonly tooltip?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,10 @@
|
|||||||
[icon]="config.icon"
|
[icon]="config.icon"
|
||||||
[label]="config.label | translate"
|
[label]="config.label | translate"
|
||||||
[type]="config.type"
|
[type]="config.type"
|
||||||
|
[matTooltip]="(config.tooltip | translate) ?? ''"
|
||||||
|
[disabled]="config.disabled"
|
||||||
[attr.help-mode-key]="config.helpModeKey"
|
[attr.help-mode-key]="config.helpModeKey"
|
||||||
|
matTooltipPosition="above"
|
||||||
></iqser-icon-button>
|
></iqser-icon-button>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import { filterEach } from '../../utils';
|
|||||||
import { List } from '../../utils';
|
import { List } from '../../utils';
|
||||||
import { IListable } from '../models';
|
import { IListable } from '../models';
|
||||||
import { ActionConfig, ButtonConfig, SearchPosition, SearchPositions } from './models';
|
import { ActionConfig, ButtonConfig, SearchPosition, SearchPositions } from './models';
|
||||||
|
import { MatTooltip } from '@angular/material/tooltip';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'iqser-page-header',
|
selector: 'iqser-page-header',
|
||||||
@ -31,6 +32,7 @@ import { ActionConfig, ButtonConfig, SearchPosition, SearchPositions } from './m
|
|||||||
CircleButtonComponent,
|
CircleButtonComponent,
|
||||||
TranslateModule,
|
TranslateModule,
|
||||||
InputWithActionComponent,
|
InputWithActionComponent,
|
||||||
|
MatTooltip,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class PageHeaderComponent<T extends IListable> {
|
export class PageHeaderComponent<T extends IListable> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user