Class GroupButtonPropertiesBuilder
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class GroupButtonPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
GroupButtonPropertiesBuilder()
Initializes a new instance of the GroupButtonPropertiesBuilder class.
Declaration
public GroupButtonPropertiesBuilder()
GroupButtonPropertiesBuilder(GroupButton)
Initializes a new instance of the GroupButtonPropertiesBuilder class by the specified group button object.
Declaration
public GroupButtonPropertiesBuilder(GroupButton groupbutton)
Parameters
Type | Name | Description |
---|---|---|
GroupButton | groupbutton |
Fields
groupbutton
Specifies the instance of the GroupButton class.
Declaration
public GroupButton groupbutton
Field Value
Type | Description |
---|---|
GroupButton |
Properties
ItemsCollection
Gets or sets the list of group button items.
Declaration
public List<GroupButtonBaseItem> ItemsCollection { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<GroupButtonBaseItem> |
Methods
ClientSideEvents(Action<GroupButtonClientSideEventsBuilder>)
Specifies to trigger the group button client side events.
Declaration
public GroupButtonPropertiesBuilder ClientSideEvents(Action<GroupButtonClientSideEventsBuilder> clientSideEvents)
Parameters
Type | Name | Description |
---|---|---|
System.Action<GroupButtonClientSideEventsBuilder> | clientSideEvents |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
CssClass(String)
Specifies the root CSS class to greoup button for theme customization.
Declaration
public GroupButtonPropertiesBuilder CssClass(string customCssClass)
Parameters
Type | Name | Description |
---|---|---|
System.String | customCssClass | cssClass |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns string value |
Datasource(DataSource)
Specifies to indicate the list of button items for group button with specified object.
Declaration
public GroupButtonPropertiesBuilder Datasource(DataSource dataSource)
Parameters
Type | Name | Description |
---|---|---|
DataSource | dataSource | dataSource |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns object value |
Datasource(Action<DataSourceBuilder>)
Specifies to indicate the list of button items for group button.
Declaration
public GroupButtonPropertiesBuilder Datasource(Action<DataSourceBuilder> dataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Action<DataSourceBuilder> | dataSource |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
Datasource(IEnumerable)
Specifies to indicate the list of button items for group button with specified enumerable object.
Declaration
public GroupButtonPropertiesBuilder Datasource(IEnumerable dataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | dataSource |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
Enabled()
Specifies the group button control respond for user interaction.
Declaration
public GroupButtonPropertiesBuilder Enabled()
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
Enabled(Boolean)
Specifies the group button control respond for user interaction with the specified boolean argument.
Declaration
public GroupButtonPropertiesBuilder Enabled(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enabled | enabled |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns boolean value |
EnableRTL()
Specifies to align the group button in right to left direction.
Declaration
public GroupButtonPropertiesBuilder EnableRTL()
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
EnableRTL(Boolean)
Specifies to align the group button in right to left direction with specified boolean argument.
Declaration
public GroupButtonPropertiesBuilder EnableRTL(bool enableRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enableRTL | enableRTL |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns boolean value |
GroupButtonFields(Action<GroupButtonFieldsBuilder>)
Specifies the field members to make databind easier.
Declaration
public GroupButtonPropertiesBuilder GroupButtonFields(Action<GroupButtonFieldsBuilder> fields)
Parameters
Type | Name | Description |
---|---|---|
System.Action<GroupButtonFieldsBuilder> | fields | fields |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns string value |
GroupButtonMode(GroupButtonMode)
Specifies the mode (checkbox mode/radio button mode) of the group button.
Declaration
public GroupButtonPropertiesBuilder GroupButtonMode(GroupButtonMode buttonMode)
Parameters
Type | Name | Description |
---|---|---|
GroupButtonMode | buttonMode |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns enum value |
Height(String)
Specifies the height of the group button.
Declaration
public GroupButtonPropertiesBuilder Height(string height)
Parameters
Type | Name | Description |
---|---|---|
System.String | height | height |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns string value |
HtmlAttributes(IDictionary<String, Object>)
Specifies to map the field of HTML attributes for the group button element.
Declaration
public GroupButtonPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | itemHtmlAttributes | HTML Attributes |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns object value |
Items(Action<GroupButtonBaseItemAdder>)
Specifies the group button Items.
Declaration
public GroupButtonPropertiesBuilder Items(Action<GroupButtonBaseItemAdder> items)
Parameters
Type | Name | Description |
---|---|---|
System.Action<GroupButtonBaseItemAdder> | items |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
Orientation(Orientation)
Specify the orientation of the group button.
Declaration
public GroupButtonPropertiesBuilder Orientation(Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
Orientation | orientation | orientation |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns enum value |
Query(String)
The query to retrieve the data from the data source. A variable is passed. This 'query' is in string type.
Declaration
public GroupButtonPropertiesBuilder Query(string query)
Parameters
Type | Name | Description |
---|---|---|
System.String | query |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
Render()
Renders the group button instance.
Declaration
public void Render()
SelectedItemIndex(List<Int32>)
Specifies the list of button items to be selected. This is applicable when 'GroupButtonMode' is 'checkbox' mode.
Declaration
public GroupButtonPropertiesBuilder SelectedItemIndex(List<int> selectedItemIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Int32> | selectedItemIndex | selectedItemIndex |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns number|string value |
ShowRoundedCorner()
Specifies the group button with rounded corners.
Declaration
public GroupButtonPropertiesBuilder ShowRoundedCorner()
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder |
ShowRoundedCorner(Boolean)
Specifies the group button with rounded corners by the specified boolean argument.
Declaration
public GroupButtonPropertiesBuilder ShowRoundedCorner(bool showRoundedCorner)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | showRoundedCorner | showRoundedCorner |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns boolean value |
Size(ButtonSize)
Specifies the size of the group button.
Declaration
public GroupButtonPropertiesBuilder Size(ButtonSize size)
Parameters
Type | Name | Description |
---|---|---|
ButtonSize | size | size |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns enum|string value |
ToHtmlString()
Represents an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type | Description |
---|---|
System.String |
Width(String)
Specifies the width of the group button.
Declaration
public GroupButtonPropertiesBuilder Width(string width)
Parameters
Type | Name | Description |
---|---|---|
System.String | width | width |
Returns
Type | Description |
---|---|
GroupButtonPropertiesBuilder | This method returns string value |