UNPKG

@doku-dev/doku-fragment

Version:

A new Angular UI library that moving away from Bootstrap and built from scratch.

35 lines (34 loc) 1.24 kB
import { NgClass } from '@angular/common'; import { DokuPillGroup } from './pill-group.component'; import * as i0 from "@angular/core"; export declare class DokuPillButton { private pillGroup?; /** * `DokuPillGroup` reads this to assign its own value. */ value?: string; /** * Whether the button is disabled. */ set disabled(value: boolean | string); get disabled(): boolean | string; private _disabled; /** * Button size. Default to `medium`. */ size: 'small' | 'medium'; /** * Whether the button is checked. */ get checked(): boolean; set checked(val: boolean); private _checked; protected get class(): NgClass['ngClass']; constructor(pillGroup?: DokuPillGroup | undefined); /** * Checks the button toggle and sync the value if it is wrapped with `DokuPillGroup`. */ protected _onClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration<DokuPillButton, [{ optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<DokuPillButton, "doku-pill-button", ["dokuPillButton"], { "value": "value"; "disabled": "disabled"; "size": "size"; "checked": "checked"; }, {}, never, ["[icon-left]", "*", "[icon-right]"], true>; }