CRUDUI

Home > @polyspec/crudui-generator-core > bindButtons

bindButtons() function

Evaluate the template's buttons for a record. Text is the declared content or the interface text named by the button type; design classes and styles follow the field design rules against the record data.

Signature:

export declare function bindButtons(template: FormTemplate, data?: Record<string, unknown>, options?: BindButtonsOptions): ButtonVM[];

Parameters

Parameter

Type

Description

template

FormTemplate

data

Record<string, unknown>

(Optional)

options

BindButtonsOptions

(Optional)

Returns:

ButtonVM[]