Class NavigationDrawerPropertiesBuilder
Represents a class for NavigationDrawerPropertiesBuilder which includes position, target ID, content ID, type, and width properties.
Inheritance
System.Object
NavigationDrawerPropertiesBuilder
Implements
System.Web.IHtmlString
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()
Assembly: Syncfusion.EJ.dll
Syntax
public class NavigationDrawerPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
NavigationDrawerPropertiesBuilder(NavigationDrawer)
Constructor for NavigationDrawer PropertiesBuilder
Declaration
public NavigationDrawerPropertiesBuilder(NavigationDrawer NavigationDrawer)
Parameters
Methods
ClientSideEvents(Action<NavigationDrawerClientSideEventsBuilder>)
NavigationDrawer ClientSide Events
Declaration
public NavigationDrawerPropertiesBuilder ClientSideEvents(Action<NavigationDrawerClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
ContentId(String)
Specifies the contentId for navigation drawer, where the ajax content need to updated.with string argument.
Declaration
public NavigationDrawerPropertiesBuilder ContentId(string contentId)
Parameters
Type |
Name |
Description |
System.String |
contentId |
|
Returns
ContentTemplate(Action<NavigationDrawerProperties>)
Specifies the element contains template contents.
Declaration
public NavigationDrawerPropertiesBuilder ContentTemplate(Action<NavigationDrawerProperties> template)
Parameters
Returns
ContentTemplate(Func<NavigationDrawerProperties, Object>)
Content template.
The Content template for RazorView.
Declaration
public NavigationDrawerPropertiesBuilder ContentTemplate(Func<NavigationDrawerProperties, object> template)
Parameters
Returns
CssClass(String)
Sets the root class for NavigationDrawer theme. This cssClass API helps to use custom skinning option for NavigationDrawer control. By defining the root class using this API, we need to include this root class in CSS.
Declaration
public NavigationDrawerPropertiesBuilder CssClass(string CssClass)
Parameters
Type |
Name |
Description |
System.String |
CssClass |
|
Returns
Direction(NavigationDrawerDirection)
Sets the Direction for the control.
Declaration
public NavigationDrawerPropertiesBuilder Direction(NavigationDrawerDirection direction)
Parameters
Returns
EnableListView(Boolean)
Sets the listview to be enabled or not.with boolean argument.
Declaration
public NavigationDrawerPropertiesBuilder EnableListView(bool enablelistbox)
Parameters
Type |
Name |
Description |
System.Boolean |
enablelistbox |
|
Returns
IsPaneOpen(Boolean)
Specifies the Pane state with boolean argument.
Declaration
public NavigationDrawerPropertiesBuilder IsPaneOpen(bool isPaneOpen)
Parameters
Type |
Name |
Description |
System.Boolean |
isPaneOpen |
|
Returns
ListViewSettings(Action<ListViewPropertiesBuilder>)
Sets all the properties of listview to render in navigation drawer
Declaration
public NavigationDrawerPropertiesBuilder ListViewSettings(Action<ListViewPropertiesBuilder> listViewModel)
Parameters
Returns
Position(NavigationDrawerPosition)
Specifies position whether it is in fixed or relative to the page.
Declaration
public NavigationDrawerPropertiesBuilder Position(NavigationDrawerPosition position)
Parameters
Returns
Render()
Declaration
TargetId(String)
Specifies the targetId for navigation drawer.
Declaration
public NavigationDrawerPropertiesBuilder TargetId(string targetId)
Parameters
Type |
Name |
Description |
System.String |
targetId |
|
Returns
ToHtmlString()
Returns an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
Type(NavigationDrawerType)
Sets the rendering type of the control.
Declaration
public NavigationDrawerPropertiesBuilder Type(NavigationDrawerType type)
Parameters
Returns
Width(Int32)
Specifies the width of the control with integer argument.
Declaration
public NavigationDrawerPropertiesBuilder Width(int width)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
Returns
Implements
System.Web.IHtmlString