fox-block-builder
Version:
Maintainable code for loop slack-block-kit-like modal builder
22 lines (21 loc) • 1 kB
TypeScript
import { ElementBuilderBase } from '../internal/base';
import { Prop } from '../internal/constants';
import { ActionId, DispatchActionOnCharacterEntered, DispatchActionOnEnterPressed, End, FocusOnLoad, InitialValue, IsDecimalAllowed, MaxLength, MaxValue, MinLength, MinValue, Placeholder } from '../internal/methods';
export interface NumberInputParams {
actionId?: string;
initialValue?: number;
isDecimalAllowed?: boolean;
placeholder?: string;
[Prop.MinValue]?: number;
[Prop.MaxValue]?: number;
[Prop.MinLength]?: number;
[Prop.MaxLength]?: number;
}
export interface NumberInputBuilder extends ActionId, DispatchActionOnCharacterEntered, DispatchActionOnEnterPressed, End, FocusOnLoad, InitialValue<number>, IsDecimalAllowed, MaxValue, MinValue, MinLength, MaxLength, Placeholder {
}
/**
* @@link https://api.slack.com/reference/block-kit/block-elements#number
* @@displayName Email Input
*/
export declare class NumberInputBuilder extends ElementBuilderBase {
}