SmartPasteButtonFormFieldBuilder

Methods

Field(System.String)

The name of the form field to target for content distribution.

Parameters

value - System.String

The value that configures the field.

Type(System.String)

The data type of the form field for AI processing guidance.

Parameters

value - System.String

The value that configures the type.

Description(System.String)

A descriptive text that helps the AI service understand the purpose and context of the form field.

Parameters

value - System.String

The value that configures the description.

AllowedValues(System.String[])

Collection of the allowed values

Parameters

allowedValues - System.String[]

The value that configures the allowedValues.

Example

Razor
 
             @(Html.Kendo().SmartPasteButton()
                 .Name("smartPaste")
                 .FormFields(formFields => {
                      formFields.Add()
                        .Field("Name")
                        .Type("string")
                        .Description("Do not generate names starting with B")
                        .AllowedValues(new string [] {" Michael"})
                 })
             )