New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the SmartPasteButtonFormField settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SmartPasteButtonFormFieldBuilder

Inheritance: objectSmartPasteButtonFormFieldBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public SmartPasteButtonFormFieldBuilder(SmartPasteButtonFormField settings)
Parameters:settingsSmartPasteButtonFormField

The SmartPasteButtonFormField

Methods

Collection of the allowed values

C#
public SmartPasteButtonFormFieldBuilder AllowedValues(string[] allowedValues)
Parameters:allowedValuesstring[]

The value that configures the allowedValues.

Returns:

SmartPasteButtonFormFieldBuilder

Example:
C#
@(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"})
})
)

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

C#
public SmartPasteButtonFormFieldBuilder Description(string value)
Parameters:valuestring

The value that configures the description.

Returns:

SmartPasteButtonFormFieldBuilder

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

C#
public SmartPasteButtonFormFieldBuilder Field(string value)
Parameters:valuestring

The value that configures the field.

Returns:

SmartPasteButtonFormFieldBuilder

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

C#
public SmartPasteButtonFormFieldBuilder Type(string value)
Parameters:valuestring

The value that configures the type.

Returns:

SmartPasteButtonFormFieldBuilder