SmartPasteButtonFormFieldBuilder
Methods
Field(System.String)
The name of the form field that corresponds to a form element.
Parameters
value - System.String
The value for Field
RETURNS
Returns the current SmartPasteButtonFormFieldBuilder instance.
Type(System.String)
The expected data type of the form field.
Parameters
value - System.String
The value for Type
RETURNS
Returns the current SmartPasteButtonFormFieldBuilder instance.
Description(System.String)
A description of the form field that helps the AI service understand its purpose.
Parameters
value - System.String
The value for Description
RETURNS
Returns the current SmartPasteButtonFormFieldBuilder instance.
AllowedValues(System.String[])
An array of allowed values that restricts the AI service to only use specific values for this field.
Parameters
value - System.String[]
The value for AllowedValues
RETURNS
Returns the current SmartPasteButtonFormFieldBuilder instance.
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"})
})
)