UNPKG

ngx-json-ui

Version:

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.

30 lines (29 loc) 1.03 kB
import { ActionContainer } from "../../../features/actions/models/action-config.model"; import { ComponentModel } from "../component.model"; /** * Represents the model for a button component. * Extends the base `ComponentModel` interface. * * @interface ButtonComponentModel * * @property {('submit' | 'button' | 'reset')} [btnType] - * Optional type of the button. Can be one of the following: * - `'submit'`: Indicates a submit button. * - `'button'`: Indicates a generic button. * - `'reset'`: Indicates a reset button. * * @property {ActionContainer} [action] - * Optional action container associated with the button. */ export interface ButtonComponentModel extends ComponentModel { /** * The type of the button. * Can be 'submit', 'button', or 'reset'. */ btnType?: 'submit' | 'button' | 'reset'; /** * An optional action container associated with the button. * This can be used to define custom actions when the button is clicked. */ action?: ActionContainer; }