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

Defines the fluent API for configuring SmartPasteButtonFormField

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

Initializes a new instance of the SmartPasteButtonFormField class.

C#
public SmartPasteButtonFormFieldBuilder(SmartPasteButtonFormField container)
Parameters:containerSmartPasteButtonFormField

Properties

Alias for the SmartPasteButtonFormField instance.

C#
protected SmartPasteButtonFormField Container { get; }

Methods

An array of allowed values that restricts the AI service to only use specific values for this field.

C#
public SmartPasteButtonFormFieldBuilder AllowedValues(params string[] value)
Parameters:valuestring[]

The value for AllowedValues

Returns:

SmartPasteButtonFormFieldBuilder

Returns the current SmartPasteButtonFormFieldBuilder instance.

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 description of the form field that helps the AI service understand its purpose.

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

The value for Description

Returns:

SmartPasteButtonFormFieldBuilder

Returns the current SmartPasteButtonFormFieldBuilder instance.

The name of the form field that corresponds to a form element.

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

The value for Field

Returns:

SmartPasteButtonFormFieldBuilder

Returns the current SmartPasteButtonFormFieldBuilder instance.

The expected data type of the form field.

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

The value for Type

Returns:

SmartPasteButtonFormFieldBuilder

Returns the current SmartPasteButtonFormFieldBuilder instance.