RED-10509: added disableStopPropagation option for action config.
This commit is contained in:
parent
b8ba2191f7
commit
3909614988
@ -1,9 +1,10 @@
|
|||||||
import { BaseHeaderConfig } from './base-config.model';
|
import { BaseHeaderConfig } from './base-config.model';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { OverlappingElement } from '../../../help-mode';
|
|
||||||
|
|
||||||
export interface ActionConfig extends BaseHeaderConfig {
|
export interface ActionConfig extends BaseHeaderConfig {
|
||||||
readonly action: ($event: MouseEvent) => void;
|
readonly action: ($event: MouseEvent) => void;
|
||||||
readonly helpModeKey?: string;
|
readonly helpModeKey?: string;
|
||||||
readonly disabled$?: Observable<boolean>;
|
readonly disabled$?: Observable<boolean>;
|
||||||
|
readonly disabled?: boolean;
|
||||||
|
readonly disableStopPropagation?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,10 +60,11 @@
|
|||||||
<iqser-circle-button
|
<iqser-circle-button
|
||||||
(action)="config.action($event)"
|
(action)="config.action($event)"
|
||||||
[buttonId]="config.id"
|
[buttonId]="config.id"
|
||||||
[disabled]="config.disabled$ && (config.disabled$ | async)"
|
[disabled]="config.disabled"
|
||||||
[icon]="config.icon"
|
[icon]="config.icon"
|
||||||
[tooltip]="config.label | translate"
|
[tooltip]="config.label | translate"
|
||||||
[attr.help-mode-key]="config.helpModeKey"
|
[attr.help-mode-key]="config.helpModeKey"
|
||||||
|
[iqserDisableStopPropagation]="config.disableStopPropagation"
|
||||||
></iqser-circle-button>
|
></iqser-circle-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 { DisableStopPropagationDirective } from '../../directives';
|
||||||
|
|
||||||
@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,
|
||||||
|
DisableStopPropagationDirective,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class PageHeaderComponent<T extends IListable> {
|
export class PageHeaderComponent<T extends IListable> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user