Class AutocompleteFieldsBuilder
Represents a class for AutocompleteFieldsBuilder which includes fields, key, text, HTML attributes, groupBy, and category properties.
Inheritance
System.Object
AutocompleteFieldsBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class AutocompleteFieldsBuilder
Constructors
AutocompleteFieldsBuilder(AutocompleteFields)
Specifies the mapping fields for the data items of the Autocomplete.
Declaration
public AutocompleteFieldsBuilder(AutocompleteFields fields)
Parameters
Type | Name | Description |
---|---|---|
AutocompleteFields | fields | fields |
Methods
Category(String)
Used to group the items.
Declaration
public AutocompleteFieldsBuilder Category(string category)
Parameters
Type | Name | Description |
---|---|---|
System.String | category | category |
Returns
Type | Description |
---|---|
AutocompleteFieldsBuilder | This method returns category field value which is of string type |
GroupBy(String)
Used to group the items.
Declaration
public AutocompleteFieldsBuilder GroupBy(string groupBy)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupBy |
Returns
Type | Description |
---|---|
AutocompleteFieldsBuilder | This method returns string value |
HtmlAttributes(String)
Defines the HTML attributes such as ID, class, and styles for the item.
Declaration
public AutocompleteFieldsBuilder HtmlAttributes(string htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.String | htmlAttributes | htmlAttributes |
Returns
Type | Description |
---|---|
AutocompleteFieldsBuilder | This method returns object value |
Key(String)
Defines the specific field name which contains unique key values for the list items.
Declaration
public AutocompleteFieldsBuilder Key(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | fields |
Returns
Type | Description |
---|---|
AutocompleteFieldsBuilder |
Text(String)
Defines the text content for the tag.
Declaration
public AutocompleteFieldsBuilder Text(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | text |
Returns
Type | Description |
---|---|
AutocompleteFieldsBuilder | This method returns string value |