Class FileExplorerCustomMenuFieldsBuilder
Inheritance
System.Object
FileExplorerCustomMenuFieldsBuilder
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 FileExplorerCustomMenuFieldsBuilder
Constructors
FileExplorerCustomMenuFieldsBuilder(FileExplorerCustomMenuFields)
The items property is used to configure and group the required ContextMenu items in FileExplorer control.
Declaration
public FileExplorerCustomMenuFieldsBuilder(FileExplorerCustomMenuFields items)
Parameters
Type | Name | Description |
---|---|---|
FileExplorerCustomMenuFields | items |
Methods
Action(String)
Defines action function that need to happen while clicking on the item
Declaration
public FileExplorerCustomMenuFieldsBuilder Action(string action)
Parameters
Type | Name | Description |
---|---|---|
System.String | action |
Returns
Type | Description |
---|---|
FileExplorerCustomMenuFieldsBuilder |
Child(Action<FileExplorerCustomMenuFieldsAdder>)
Specifies the sub menu items of the current item
Declaration
public FileExplorerCustomMenuFieldsBuilder Child(Action<FileExplorerCustomMenuFieldsAdder> items)
Parameters
Type | Name | Description |
---|---|---|
System.Action<FileExplorerCustomMenuFieldsAdder> | items |
Returns
Type | Description |
---|---|
FileExplorerCustomMenuFieldsBuilder |
HtmlAttributes(IDictionary<String, Object>)
Sets the html attributes for the item
Declaration
public FileExplorerCustomMenuFieldsBuilder HtmlAttributes(IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes |
Returns
Type | Description |
---|---|
FileExplorerCustomMenuFieldsBuilder |
Id(String)
Sets the id of newly adding context menu item
Declaration
public FileExplorerCustomMenuFieldsBuilder Id(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Returns
Type | Description |
---|---|
FileExplorerCustomMenuFieldsBuilder |
SpriteCssClass(String)
Sets the CSS class for the item
Declaration
public FileExplorerCustomMenuFieldsBuilder SpriteCssClass(string css)
Parameters
Type | Name | Description |
---|---|---|
System.String | css |
Returns
Type | Description |
---|---|
FileExplorerCustomMenuFieldsBuilder |
Text(String)
Sets the text that need to be displayed on context menu item
Declaration
public FileExplorerCustomMenuFieldsBuilder Text(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
Returns
Type | Description |
---|---|
FileExplorerCustomMenuFieldsBuilder |