UNPKG

design-angular-kit

Version:

Un toolkit Angular conforme alle linee guida di design per i servizi web della PA

48 lines (47 loc) 1.75 kB
import { Location } from '@angular/common'; import * as i0 from "@angular/core"; import * as i1 from "../../../utils/coercion"; export declare class ItBackButtonComponent { readonly _location: Location; /** * Back button style * - <b>link</b>: use a link with icon and text * - <b>button</b>: use a button with icon and text * @default button */ buttonStyle: 'link' | 'button'; /** * Button direction * - <b>left</b>: Back direction * - <b>up</b>: Upper direction * @default left */ direction: 'left' | 'up'; /** * Show/Hide icon * @default true */ showIcon: boolean; /** * Show/Hide text * @default true */ showText: boolean; /** * Custom back logic <br/> * * NOTE: to use 'this' need bind function <br/> * @example backCbFn = this.errorCallback.bind(this); * (errorCallback is your function, pass backCbFn to the component) */ backFn?: (location: Location) => void; constructor(_location: Location); /** * Go back function */ goBack(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<ItBackButtonComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ItBackButtonComponent, "it-back-button", ["itBackButton"], { "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "backFn": { "alias": "backFn"; "required": false; }; }, {}, never, never, true, never>; static ngAcceptInputType_showIcon: i1.BooleanInput; static ngAcceptInputType_showText: i1.BooleanInput; }