SplitterSide

open class SplitterSide(animation: SideAnimation? = null, swipeable: Boolean? = null, collapse: Collapse? = null, side: Side? = null, className: String? = null, init: SplitterSide.() -> Unit? = null)

A splitter side component.

Parameters

animation

an animation type

swipeable

whether to enable swipe interaction on collapse mode

collapse

specify the collapse behavior

side

specify which side of the screen the side menu is located

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(animation: SideAnimation? = null, swipeable: Boolean? = null, collapse: Collapse? = null, side: Side? = null, className: String? = null, init: SplitterSide.() -> Unit? = null)

Creates a splitter side component.

Properties

Link copied to clipboard

An animation type.

Link copied to clipboard

Specify the collapse behavior.

Link copied to clipboard

A dynamic property returning if the side menu is open.

Link copied to clipboard
val mode: String?

A dynamic property returning current collapse mode ("split", "collapse", "closed", "open" or "changing").

Link copied to clipboard

Specify how much the menu needs to be swiped before opening.

Link copied to clipboard
val page: <Error class: unknown class>?

A dynamic property returning current page.

Link copied to clipboard
var side: Side?

Specify which side of the screen the side menu is located.

Link copied to clipboard
var sideWidth: <Error class: unknown class>?

The width of swipeable area calculated from the edge (in pixels).

Link copied to clipboard

Whether to enable swipe interaction on collapse mode.

Link copied to clipboard

The width of swipeable area calculated from the edge (in pixels).

Functions

Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun close(options: dynamic = undefined): <Error class: unknown class><Unit>?

Closes side menu.

Link copied to clipboard
open fun load(page: Page, options: dynamic = undefined): <Error class: unknown class><Unit>?
open fun load(pageId: String, options: dynamic = undefined): <Error class: unknown class><Unit>?

Loads the specified page into the splitter side menu.

Link copied to clipboard
open fun onSwipe(callback: (ratio: Number) -> Unit)

Sets swipe event listener.

Link copied to clipboard
open fun onSwipeClear()

Clears swipe event listener.

Link copied to clipboard
open fun open(options: dynamic = undefined): <Error class: unknown class><Unit>?

Opens side menu.

Link copied to clipboard
fun SplitterSide.page(pageId: String? = null, className: String? = null, init: Page.() -> Unit? = null): Page

DSL builder extension function.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun toggle(options: dynamic = undefined): <Error class: unknown class><Unit>?

Toggles side menu visibility.