Name | Type | Default | Description |
ContextMenuDataSource | object | N/A | Determines the options that will be available for selection inside the context menu. |
Disabled | bool | false | Enables or disables the element. |
DataSource | IEnumerable<object> | N/A | Sets or gets Layout's data source. |
Locale | string | "en" | Sets or gets the language. Used in conjunction with the property messages. |
Messages | object | N/A | Sets an object with string values, related to the different states of passwords strength. |
Orientation | Orientation | Orientation.Vertical | Sets or gets Layout's main orientation. The orientation is applied to all Splitters inside the Layout unless they have their orientation explicitly set in the dataSource. |
Readonly | bool | false | If the element is readonly, users cannot interact with it. |
AllowLiveSplit | bool | false | Determines whether splitting is live or not. |
RightToLeft | bool | false | Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. |
SelectedIndex | object | N/A | Determines the selected item. |
Theme | string | "" | Determines the theme. Theme defines the look of the element |
Unfocusable | bool | false | If is set to true, the element cannot be focused. |
Name | Type | Arguments | Description |
CreateLayoutItem | void | object type, object position | Inserts a new item inside the Layout.Args: dynamic type - The index of an item to be removed or an instance of Smart.SplitterItem.,object position - A string that represents the position where the new item will be created. |
CreateLayoutItem | void | object type | Inserts a new item inside the Layout. |
GetDataSourceAsync() | Task<IEnumerable<object>> | 'N/A' | Gets the "DataSource" property as Task<IEnumerable<object>>. |
GetItem | void | object index | Returns a Layout item according to the index that is passed.Args: int index - The index of an item. |
GetItem | void | int index | Returns a Layout item according to the index that is passed.Args: int index - The index of an item. |
GetItem | void | string index | Returns a Layout item according to the index that is passed.Args: int index - The index of an item. |
GetSelectedIndexAsync() | Task<object> | 'N/A' | Gets the "SelectedIndex" property as Task<object>. |
MoveChildren | void | object oldItem, object newItem | Moves all children from one item to another.Args: dynamic oldItem - The source item that will have it's content removed.,dynamic newItem - The host item that will have it's content replaced. |
Refresh | void | 'N/A' | Refreshes the Blazor Component. Performs a layout of the HTML Elements and recalculates the measurements. |
Refresh | void | N/A | Refreshes the Layout |
Render | void | 'N/A' | Re-renders the Blazor Component. This method will make a full re-render. |
StateHasChanged | void | 'N/A' | Refreshes the state and Re-renders the Blazor Component, if necessary. |
Name | Type | Description | Event Detail |
OnStateChange | EventCallback<Event> | This event is triggered when a change regarding the Layout's state has occured, such as inserting a new item, removing an item, etc. | dynamic item- The Splitter item that was the target of a change., dynamic type- A description of the operation that has cause the change. |
StateChanged | event LayoutStateChangedEventHandler | This event is triggered when a change regarding the Layout's state has occured, such as inserting a new item, removing an item, etc. | LayoutStateChangedEventArgs |
OnChange | EventCallback<Event> | This event is triggered when the selection is changed. | dynamic oldSelectedIndex- The Splitter item that was previously selected., dynamic selectedIndex- The Splitter item that is currently selected. |
Changed | event LayoutChangedEventHandler | This event is triggered when the selection is changed. | LayoutChangedEventArgs |
OnClosing | EventCallback<Event> | This event is triggered when a the context menu is about to be closed. The operation can be canceled by calling event.preventDefault() in the event handler function. | N/A |
Closing | event LayoutClosingEventHandler | This event is triggered when a the context menu is about to be closed. The operation can be canceled by calling event.preventDefault() in the event handler function. | LayoutClosingEventArgs |
OnClose | EventCallback<Event> | This event is triggered when a the context menu is closed. | N/A |
Closed | event LayoutClosedEventHandler | This event is triggered when a the context menu is closed. | LayoutClosedEventArgs |
OnOpening | EventCallback<Event> | This event is triggered when a the context menu is about to be opened. The operation can be canceled by calling event.preventDefault() in the event handler function. | N/A |
Opening | event LayoutOpeningEventHandler | This event is triggered when a the context menu is about to be opened. The operation can be canceled by calling event.preventDefault() in the event handler function. | LayoutOpeningEventArgs |
OnOpen | EventCallback<Event> | This event is triggered when a the context menu is opened. | N/A |
Opened | event LayoutOpenedEventHandler | This event is triggered when a the context menu is opened. | LayoutOpenedEventArgs |
OnMenuItemClick | EventCallback<Event> | This event is triggered when an option from the context menu has been clicked. | dynamic target- The Splitter item that was the target of the context menu opening., dynamic item- The Context menu item that was clicked., string label- The label of the context menu that was clicked., dynamic value- The value of the context menu that was clicked. |
MenuItemClicked | event LayoutMenuItemClickedEventHandler | This event is triggered when an option from the context menu has been clicked. | LayoutMenuItemClickedEventArgs |