The properties of the button component.
IOneButtonProps
OptionalbadgeColor?: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "default"The color of the badge. Default is 'primary'.
OptionalbadgeOverlap?: "rectangular" | "circular"The overlap type for the badge. Default is 'rectangular'.
OptionalbadgeSx?: anyThe style for the badge. Default is null.
OptionalcloseSubject?: TSubject<void>Optionalcolor?: "error" | "inherit" | "primary" | "secondary" | "success" | "info" | "warning"The color of the button. Default is 'inherit'.
OptionalfieldDebounce?: numberThe debounce time in milliseconds for field changes. Default is null.
An array of IField objects representing the fields associated with the button.
The handler function to be invoked when the button is clicked.
OptionalincomingTransform?: (data: any, payload: Payload) => DataOptionalisBaseline?: (field: IField) => booleanOptionalisBaselineForRoot?: (field: IField) => booleanOptionalnoBadge?: booleanDetermines whether to display a badge on the button. Default is false.
OptionalonBlur?: (The blur callback function for the button. Default is null.
OptionalonChange?: (Data: Data, initial: boolean) => voidThe change callback function for the button. Default is null.
OptionalonClose?: (data: Data) => voidOptionaloneSx?: anyThe style for the button. Default is null.
OptionalonFocus?: (The focus callback function for the button. Default is null.
OptionalonInvalid?: (name: string, msg: string, payload: Payload) => voidThe invalidity callback function for the button. Default is null.
OptionaloutgoingTransform?: (data: any, payload: Payload) => DataOptionalpayload?: Payload | () => PayloadThe payload to be passed to the handler when the button is clicked.
OptionalreadTransform?: (value: string | string[], name: string, data: Data, payload: Payload) => ValueOptionalreloadSubject?: TSubject<void>OptionalwaitForChangesDelay?: numberThe delay time in milliseconds to wait for changes before invoking the handler. Default is null.
OptionalwithCloseAfterChange?: booleanOptionalwriteTransform?: (value: string | string[], name: string, data: Data, payload: Payload) => Value
Represents a button component with a popover that displays a form.