UNPKG

@notiz/formly-tailwindcss

Version:
25 lines (24 loc) 976 B
import { TemplateRef, Type } from '@angular/core'; import { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core'; import * as i0 from "@angular/core"; export interface ButtonProps extends FormlyFieldProps { type?: string | 'button' | 'submit' | 'reset'; style?: string; text?: string; template?: TemplateRef<any> | string; onClick?: (event: any) => void; } export interface FormlyButtonFieldConfig extends FormlyFieldConfig<ButtonProps> { type: 'button' | Type<FormlyTailwindButton>; } export declare class FormlyTailwindButton extends FieldType<FieldTypeConfig<ButtonProps>> { class: string; defaultOptions: { props: { type: string; }; }; onClick(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<FormlyTailwindButton, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormlyTailwindButton, "formly-button", never, {}, {}, never, never, true, never>; }