CRUDUI

Home > @polyspec/crudui-generator-html > renderFormView

renderFormView() function

Render the complete form for evaluated nodes and form buttons, as returned by bindForm, bindButtons and formDescription. options.action has no template action here. description is the translated root description, written first in the crudui-form block when it is not empty.

Signature:

export declare function renderFormView(fields: readonly NodeVM[], buttons: readonly ButtonVM[], messages: FormMessages, options?: FormRenderOptions, description?: string): string;

Parameters

Parameter

Type

Description

fields

readonly NodeVM[]

buttons

readonly ButtonVM[]

messages

FormMessages

options

FormRenderOptions

(Optional)

description

string

(Optional)

Returns:

string