ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
61 lines (57 loc) • 3.19 kB
TypeScript
import * as i0 from '@angular/core';
import { OnChanges, AfterViewInit, AfterContentInit, OnInit, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
import { Direction } from '@angular/cdk/bidi';
import { NzConfigKey } from 'ng-zorro-antd/core/config';
import { NzSizeLDSType } from 'ng-zorro-antd/core/types';
import * as i1 from 'ng-zorro-antd/space';
import * as i2 from 'ng-zorro-antd/core/transition-patch';
import * as i3 from 'ng-zorro-antd/core/wave';
type NzButtonType = 'primary' | 'default' | 'dashed' | 'link' | 'text' | null;
type NzButtonShape = 'circle' | 'round' | null;
type NzButtonSize = NzSizeLDSType;
declare class NzButtonComponent implements OnChanges, AfterViewInit, AfterContentInit, OnInit {
private elementRef;
private cdr;
private renderer;
private directionality;
private destroyRef;
readonly _nzModuleName: NzConfigKey;
nzIconDirectiveElement: ElementRef;
nzBlock: boolean;
nzGhost: boolean;
nzSearch: boolean;
nzLoading: boolean;
nzDanger: boolean;
disabled: boolean;
tabIndex: number | string | null;
nzType: NzButtonType;
nzShape: NzButtonShape;
nzSize: NzButtonSize;
dir: Direction;
protected finalSize: i0.Signal<NzSizeLDSType>;
private size;
private compactSize;
private loading$;
insertSpan(nodes: NodeList, renderer: Renderer2): void;
get iconOnly(): boolean;
constructor();
ngOnInit(): void;
ngOnChanges({ nzLoading, nzSize }: SimpleChanges): void;
ngAfterViewInit(): void;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzButtonComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzButtonComponent, "button[nz-button], a[nz-button]", ["nzButton"], { "nzBlock": { "alias": "nzBlock"; "required": false; }; "nzGhost": { "alias": "nzGhost"; "required": false; }; "nzSearch": { "alias": "nzSearch"; "required": false; }; "nzLoading": { "alias": "nzLoading"; "required": false; }; "nzDanger": { "alias": "nzDanger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "nzType": { "alias": "nzType"; "required": false; }; "nzShape": { "alias": "nzShape"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; }, {}, ["nzIconDirectiveElement"], ["*"], true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>;
static ngAcceptInputType_nzBlock: unknown;
static ngAcceptInputType_nzGhost: unknown;
static ngAcceptInputType_nzSearch: unknown;
static ngAcceptInputType_nzLoading: unknown;
static ngAcceptInputType_nzDanger: unknown;
static ngAcceptInputType_disabled: unknown;
}
declare class NzButtonModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzButtonModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzButtonModule, never, [typeof NzButtonComponent], [typeof NzButtonComponent, typeof i2.ɵNzTransitionPatchModule, typeof i3.NzWaveModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzButtonModule>;
}
export { NzButtonComponent, NzButtonModule };
export type { NzButtonShape, NzButtonSize, NzButtonType };