theme-lib
Version:
This is a simple example Angular Library published to npm.
48 lines (47 loc) • 1.61 kB
TypeScript
import { Renderer2, ElementRef } from '@angular/core';
export declare class NbButtonComponent {
protected renderer: Renderer2;
protected hostElement: ElementRef<HTMLElement>;
static readonly SIZE_XSMALL = "xsmall";
static readonly SIZE_SMALL = "small";
static readonly SIZE_MEDIUM = "medium";
static readonly SIZE_LARGE = "large";
static readonly STATUS_PRIMARY = "primary";
static readonly STATUS_INFO = "info";
static readonly STATUS_SUCCESS = "success";
static readonly STATUS_WARNING = "warning";
static readonly STATUS_DANGER = "danger";
static readonly SHAPE_RECTANGLE = "rectangle";
static readonly SHAPE_ROUND = "round";
static readonly SHAPE_SEMI_ROUND = "semi-round";
size: string;
status: string;
accent: string;
shape: string;
readonly xsmall: boolean;
readonly small: boolean;
readonly medium: boolean;
readonly large: boolean;
readonly primary: boolean;
readonly info: boolean;
readonly success: boolean;
readonly warning: boolean;
readonly danger: boolean;
readonly rectangle: boolean;
readonly round: boolean;
readonly semiRound: boolean;
hero: boolean;
outline: boolean;
disabled: boolean;
readonly tabbable: string;
fullWidth: boolean;
private setSize;
private setStatus;
private setShape;
setHero: boolean;
setDisabled: boolean;
setFullWidth: any;
setOutline: boolean;
onClick(event: Event): void;
constructor(renderer: Renderer2, hostElement: ElementRef<HTMLElement>);
}