Name | Type | Default | Description |
AutoFitMode | SplitterAutoFitMode | SplitterAutoFitMode.Proportional | Determines how the items are arranged inside the Splitter. Possible values: - end - all items will fit the size of the Splitter. When inserting a new item the space required for the item to fit will be deducted from it's neighbour.
- proportional - all items will fit the size of the Splitter. When inserting a new item the space required for it to fit will be the result from the proportional deduction of the size from the rest of the items inside the element.
- overflow - the items inside the Splitter will not fit it's size. Instead they overflow by taking the exact amount of space they need and a scrollbar is displayed in order to view the content.
|
Disabled | bool | false | Enables or disables the element. |
DataSource | IEnumerable<object> | N/A | Sets or gets splitter's data source. |
Items | IEnumerable<object> | | A getter that returns an array of all Splitter items. |
KeepProportionsOnResize | bool | false | If set the element keeps the same proportions of the items after the whole element has been resized regardless of the size property unit ( pixels or percentages) of the items. |
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 splitter's orientation. |
Readonly | bool | false | If the element is readonly, users cannot interact with it. |
ResizeMode | SplitterResizeMode | SplitterResizeMode.Adjacent | Determines the resize mode of the splitter. Possible values are: - None - resizing is disabled. - Adjacent - only the two adjacent items between the target splitter bar are being affected. This is the default behavior. - End - only the first item( left or top according to the orientation) of the target Splitter bar and the last item are affected. Proportional - all of the items positioned in the direction to which the splitter bar is dragged will be affected. For example, when a splitter bar is dragged to the right all the items positioned on it's the right side will be affected. The items will obtain a proportional size corresponding to their current size. |
ResizeStep | int | 5 | Determines the resize step during reisizing |
RightToLeft | bool | false | Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. |
LiveResize | bool | false | When enabled the resizing operation happens live. By default this feature is not enabled and the user sees a hightlighted bar while dragging instead of the actual splitter bar. |
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 |
AppendChild | void | dynamic node | Appends a new node.Args: dynamic node - The node to append |
Collapse | void | object item, bool far | Collapses splitter item.Args: dynamic item - number indicating the index of the item or an isntance of Smart.SplitterItem,bool far - Indicates whether the item should collapse to it's far or near side |
Collapse | void | object item | Collapses splitter item. |
Collapse | void | int item, bool far | Collapses splitter item.Args: int item - number indicating the index of the item or an isntance of Smart.SplitterItem,bool far - Indicates whether the item should collapse to it's far or near side |
Collapse | void | int item | Collapses splitter item. |
Expand | void | object item | Expands the splitter item if possible (if there's enough space available).Args: dynamic item - number indicating the index of the item or an isntance of Smart.SplitterItem |
Expand | void | int item | Expands the splitter item if possible (if there's enough space available).Args: int item - number indicating the index of the item or an isntance of Smart.SplitterItem |
GetDataSourceAsync() | Task<IEnumerable<object>> | 'N/A' | Gets the "DataSource" property as Task<IEnumerable<object>>. |
HideBar | int | int splitterBar | Hides a splitter barArgs: int splitterBar - A Smart.SplitterBar instance. |
Insert | void | int index, object details | Insert a new Splitter item at a given position.Args: int index - The index at which a new item will be inserted.,object details - An Object or string used as content if the splitter item. |
Insert | void | int index, string details | Insert a new Splitter item at a given position.Args: int index - The index at which a new item will be inserted.,string details - An Object or string used as content if the splitter item. |
InsertBefore | dynamic | dynamic newNode, dynamic referenceNode | Inserts the specified "smart-splitter-item" node before the reference "smart-splitter-item" node.Args: dynamic newNode - The "smart-splitter-item" node to insert.,dynamic referenceNode - The "smart-splitter-item" node before which newNode is inserted. |
InsertBefore | dynamic | dynamic newNode | Inserts the specified "smart-splitter-item" node before the reference "smart-splitter-item" node. |
LockBar | void | int index | Locks a splitter bar so it can't be dragged.Args: int index - The index of a Splitter Bar or it's instance. |
LockItem | void | int index | Locks a splitter item so it's size can't change.Args: int index - The index of a Splitter Bar or it's instance. |
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 Splitter |
RemoveAll | void | N/A | Removes all items from the Splitter |
RemoveAt | void | int index | Removes a Splitter item.Args: int index - An item to be removed. |
RemoveChild | dynamic | dynamic node | Removes a child "smart-splitter-item" node.Args: dynamic node - The "smart-splitter-item" node to remove. |
Render | void | 'N/A' | Re-renders the Blazor Component. This method will make a full re-render. |
ShowBar | void | int splitterBar | Unhides a Splitter BarArgs: int splitterBar - An instance of a splitter bar. |
StateHasChanged | void | 'N/A' | Refreshes the state and Re-renders the Blazor Component, if necessary. |
UnlockBar | void | int item | Unlocks a previously locked splitter bar.Args: int item - The index of a Splitter Bar or it's instance. |
UnlockItem | void | int item | Unlocks a previously locked splitter item.Args: int item - The index of a Splitter Item or it's instance. |
Update | void | object item, object settings | Updates the properties of a Splitter item inside the Splitter.Args: dynamic item - The index of a Smart.SplitterItem or it's instance.,object settings - An object containing the properties of a Smart.SplitterItem. |
Name | Type | Description | Event Detail |
OnCollapse | EventCallback<Event> | This event is triggered when splitter item is collapsed. | N/A |
Collapsed | event SplitterCollapsedEventHandler | This event is triggered when splitter item is collapsed. | SplitterCollapsedEventArgs |
OnExpand | EventCallback<Event> | This event is triggered when splitter item is expanded. | N/A |
Expanded | event SplitterExpandedEventHandler | This event is triggered when splitter item is expanded. | SplitterExpandedEventArgs |
OnResizeStart | EventCallback<Event> | This event is triggered when splitter resizing begins. | N/A |
ResizeStarted | event SplitterResizeStartedEventHandler | This event is triggered when splitter resizing begins. | SplitterResizeStartedEventArgs |
OnResizeEnd | EventCallback<Event> | This event is triggered when splitter resizing finishes. | N/A |
ResizeEnded | event SplitterResizeEndedEventHandler | This event is triggered when splitter resizing finishes. | SplitterResizeEndedEventArgs |