Class MobileMenuPropertiesBuilder
Menu Properties Builder
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript.Mobile
Assembly: Syncfusion.EJ.dll
Syntax
public class MobileMenuPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
MobileMenuPropertiesBuilder(Menu)
Initializes a new instance of the MobileMenuPropertiesBuilder class.
Declaration
public MobileMenuPropertiesBuilder(Menu mMenu)
Parameters
| Type | Name | Description |
|---|---|---|
| Menu | mMenu | The m menu. |
Methods
AllowScrolling(Boolean)
Specifies whether to allow scrolling behaviour for the contents.
Declaration
public MobileMenuPropertiesBuilder AllowScrolling(bool allowScrolling)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | allowScrolling | if set to |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
CancelButtonColor(String)
Specifies CancelButtonColor.
Declaration
public MobileMenuPropertiesBuilder CancelButtonColor(string cancelButtonColor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cancelButtonColor | The CancelButtonColor. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
CancelButtonText(String)
Specifies the cancelButtonText
Declaration
public MobileMenuPropertiesBuilder CancelButtonText(string cancelButtonText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cancelButtonText | The cancel button text. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ClientSideEvents(Action<MobileMenuClientSideEventsBuilder>)
Section to specify Client side events.
Declaration
public MobileMenuPropertiesBuilder ClientSideEvents(Action<MobileMenuClientSideEventsBuilder> clientSideEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<MobileMenuClientSideEventsBuilder> | clientSideEvents | The client side events. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Color(String)
Specifies Color.
Declaration
public MobileMenuPropertiesBuilder Color(string color)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | color | The Color. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ContentTemplate(Action<MobileMenuProperties>)
Specifies the element contains template contents.
Declaration
public MobileMenuPropertiesBuilder ContentTemplate(Action<MobileMenuProperties> template)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<MobileMenuProperties> | template | The template. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ContentTemplate(Func<MobileMenuProperties, Object>)
Specifies the element contains template contents.
Declaration
public MobileMenuPropertiesBuilder ContentTemplate(Func<MobileMenuProperties, object> template)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<MobileMenuProperties, System.Object> | template | The template. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
CssClass(String)
Specifies custom theme for the control.
Declaration
public MobileMenuPropertiesBuilder CssClass(string cssClass)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cssClass | The cssClass. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
DataSource(Object)
Datas the source.
Declaration
public MobileMenuPropertiesBuilder DataSource(object dataSource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | dataSource | The data source. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
EnablePersistence(Boolean)
Specifies to maintain the current model value to browser cookies for state maintenance. While refresh the page, the model value will get apply to the control from browser cookies.
Declaration
public MobileMenuPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enablePersistence | if set to |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
EnableRippleEffect(Boolean)
Provides animation ripple effect to the control
Declaration
public MobileMenuPropertiesBuilder EnableRippleEffect(bool enableRippleEffect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableRippleEffect | if set to |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Fields(Action<MobileMenuPropertiesBuilder.MobileMenuFieldPropertiesBuilder>)
Section for fields specific functionalities.
Declaration
public MobileMenuPropertiesBuilder Fields(Action<MobileMenuPropertiesBuilder.MobileMenuFieldPropertiesBuilder> fieldModel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<MobileMenuPropertiesBuilder.MobileMenuFieldPropertiesBuilder> | fieldModel | The field model. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Height(String)
Specifies the height.
Declaration
public MobileMenuPropertiesBuilder Height(string height)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | height | The height. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Href(String)
Specifies whether to render the menu href.
Declaration
public MobileMenuPropertiesBuilder Href(string href)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | href | The href. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Items(Action<MobileMenuBaseItemAdder>)
Specifies the menu items.
Declaration
public MobileMenuPropertiesBuilder Items(Action<MobileMenuBaseItemAdder> menuItem)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<MobileMenuBaseItemAdder> | menuItem | The menu item. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
MobileMenuType(MobileMenuType)
Specifies the type of the menu.
Declaration
public MobileMenuPropertiesBuilder MobileMenuType(MobileMenuType type)
Parameters
| Type | Name | Description |
|---|---|---|
| MobileMenuType | type | The show on. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Query(String)
Specifies the query to execute with the datasource is enabled.
Declaration
public MobileMenuPropertiesBuilder Query(string query)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | query | The query. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Render()
Declaration
public void Render()
RenderMode(RenderMode)
Specifies the rendering mode of the control.
Declaration
public MobileMenuPropertiesBuilder RenderMode(RenderMode renderMode)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderMode | renderMode | The render mode. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ShowArrow(Boolean)
Specifies whether to show the Arrow.
Declaration
public MobileMenuPropertiesBuilder ShowArrow(bool showArrow)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | showArrow | if set to |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ShowCancelButton(Boolean)
Specifies whether to show the cancelbutton.
Declaration
public MobileMenuPropertiesBuilder ShowCancelButton(bool showCancelButton)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | showCancelButton | if set to |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ShowOn(ShowOn)
Specifies in which action need to show the menu.
Declaration
public MobileMenuPropertiesBuilder ShowOn(ShowOn showOn)
Parameters
| Type | Name | Description |
|---|---|---|
| ShowOn | showOn | The show on. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ShowTitle(Boolean)
Specifies whether to show the title.
Declaration
public MobileMenuPropertiesBuilder ShowTitle(bool showTitle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | showTitle | if set to |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Target(String)
Specifies the target element.
Declaration
public MobileMenuPropertiesBuilder Target(string target)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | target | The target identifier. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
TemplateId(String)
Specifies ID of the element contains template contents.
Declaration
public MobileMenuPropertiesBuilder TemplateId(string templateId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | templateId | The template identifier. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Text(String)
Specifies Text.
Declaration
public MobileMenuPropertiesBuilder Text(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | The Text. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
Title(String)
Specifies the title
Declaration
public MobileMenuPropertiesBuilder Title(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title | The title. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |
ToHtmlString()
Declaration
public string ToHtmlString()
Returns
| Type | Description |
|---|---|
| System.String |
Width(String)
Specifies the width.
Declaration
public MobileMenuPropertiesBuilder Width(string width)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | width | The width. |
Returns
| Type | Description |
|---|---|
| MobileMenuPropertiesBuilder |