@webilix/ngx-helper-m3
Version:
Helper library for Angular and Material 3
56 lines (55 loc) • 2.23 kB
TypeScript
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { INgxHelperConfig } from '../../ngx-helper.config';
import { ComponentService } from '../component.service';
import { INgxHelperCardOption, NgxHelperCardAction } from './ngx-helper-card.interface';
import * as i0 from "@angular/core";
type Button = {
type: 'BUTTON';
title: string;
icon: string;
action: () => void;
color?: string;
showIcon?: boolean;
} | {
type: 'MENU';
title: string;
icon: string;
color?: string;
showIcon?: boolean;
buttons: ('DIVIDER' | {
title: string;
icon: string;
action: () => void;
color?: string;
})[];
};
export declare class NgxHelperCardComponent implements OnInit, OnChanges {
private readonly componentService;
private readonly config?;
private className;
title: string;
subTitle?: string;
icon?: string;
actions: NgxHelperCardAction[];
option?: INgxHelperCardOption;
padding: string;
backgroundColor?: string;
hasShadow: boolean;
isMobile: boolean;
buttons: Button[];
private componentConfig;
optionId?: string;
optionTitle?: string;
optionItems: ('DIVIDER' | {
readonly id: string;
readonly title: string;
})[];
constructor(componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
onResize(): void;
setOption(id: string, firstCheck?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperCardComponent, [null, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperCardComponent, "ngx-helper-card", never, { "title": { "alias": "title"; "required": true; }; "subTitle": { "alias": "subTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "option": { "alias": "option"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "hasShadow": { "alias": "hasShadow"; "required": false; }; }, {}, never, ["*"], true, never>;
}
export {};