Splitter

open class Splitter(classes: Set<String>, init: Splitter.() -> Unit?) : SimplePanel

A splitter component.

Parameters

classes

a set of CSS class names

init

an initializer extension function

Constructors

Splitter
Link copied to clipboard
js
fun Splitter(classes: Set<String> = setOf(), init: Splitter.() -> Unit? = null)
Creates a splitter component.

Functions

add
Link copied to clipboard
js
open override fun add(child: Component): SimplePanel
Adds given component to the current container.
open override fun add(position: Int, child: Component): SimplePanel
Adds given component to the current container at the given position.
addAfterDestroyHook
Link copied to clipboard
js
open override fun addAfterDestroyHook(hook: () -> Unit): <ERROR CLASS>
The supplied function is called after the widget is removed from the DOM.
addAfterInsertHook
Link copied to clipboard
js
open override fun addAfterInsertHook(hook: (<ERROR CLASS>) -> Unit): <ERROR CLASS>
The supplied function is called after the widget is inserted into the DOM.
addAll
Link copied to clipboard
js
open override fun addAll(children: List<Component>): SimplePanel
Adds a list of components to the current container.
addBeforeDisposeHook
Link copied to clipboard
js
open override fun addBeforeDisposeHook(hook: () -> Unit): <ERROR CLASS>
The supplied function is called before the widget is disposed.
addCssClass
Link copied to clipboard
js
open override fun addCssClass(css: String): Widget
Adds given value to the set of CSS classes generated in html code of current component.
addCssStyle
Link copied to clipboard
js
open override fun addCssStyle(css: Style): Widget
Adds given style object to the set of CSS classes generated in html code of current component.
addSurroundingCssClass
Link copied to clipboard
js
open override fun addSurroundingCssClass(css: String): Widget
Adds given value to the set of CSS classes generated in html code of parent component.
addSurroundingCssStyle
Link copied to clipboard
js
open override fun addSurroundingCssStyle(css: Style): Widget
Adds given style object to the set of CSS classes generated in html code of parent component.
animate
Link copied to clipboard
js
open fun animate(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null, styles: StyledComponent.() -> Unit)
Animate the widget changing CSS properties.
blur
Link copied to clipboard
js
open fun blur()
Makes the element blur.
clearDragDropData
Link copied to clipboard
js
open fun clearDragDropData()
Clears D&D data for the current widget.
disablePopover
Link copied to clipboard
js
open fun disablePopover(): Widget
Disables popover for the current widget.
disableTooltip
Link copied to clipboard
js
open fun disableTooltip(): Widget
Disables tooltip for the current widget.
disposeAll
Link copied to clipboard
js
open override fun disposeAll(): Container
Removes all children from the current container and disposes them.
enablePopover
Link copied to clipboard
js
open fun enablePopover(options: PopoverOptions = PopoverOptions()): Widget
Enables popover for the current widget.
enableTooltip
Link copied to clipboard
js
open fun enableTooltip(options: TooltipOptions = TooltipOptions()): Widget
Enables tooltip for the current widget.
fadeIn
Link copied to clipboard
js
open fun fadeIn(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null): Widget
Shows current widget with fade in effect.
fadeOut
Link copied to clipboard
js
open fun fadeOut(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null): Widget
Hides current widget with fade out effect.
focus
Link copied to clipboard
js
open fun focus()
Makes the element focused.
getAttribute
Link copied to clipboard
js
open override fun getAttribute(name: String): String?
Returns the value of an additional attribute.
getChildren
Link copied to clipboard
js
open override fun getChildren(): List<Component>
Returns a list of children of the current container.
getElement
Link copied to clipboard
js
open override fun getElement(): <ERROR CLASS>?
Returns DOM element bound to the current component.
getElementJQuery
Link copied to clipboard
js
open override fun getElementJQuery(): <ERROR CLASS>?
Returns JQuery element bound to the current component.
getElementJQueryD
Link copied to clipboard
js
open override fun getElementJQueryD(): dynamic
Returns JQuery element bound to the current component as a dynamic type.
getSnStyle
Link copied to clipboard
js
open fun getSnStyle(): List<<ERROR CLASS><String, String>>
Returns the list of String pairs defining CSS style attributes and their values.
getStyle
Link copied to clipboard
js
fun getStyle(name: String): String?
Returns the value of a custom CSS style.
hasCssClass
Link copied to clipboard
js
open override fun hasCssClass(css: String): Boolean
Checks whether the given value is present in the set of CSS classes.
hide
Link copied to clipboard
js
open fun hide(): Widget
Makes current widget invisible.
hideAnim
Link copied to clipboard
js
open fun hideAnim(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null): Widget
Hides current widget with animation effect.
hidePopover
Link copied to clipboard
js
open fun hidePopover(): Widget
Hides popover for the current widget.
hideTooltip
Link copied to clipboard
js
open fun hideTooltip(): Widget
Hides tooltip for the current widget.
invoke
Link copied to clipboard
js
open operator fun invoke(vararg children: Component): Container
Operator function for adding children in a DSL style.
onDeviceBackButton
Link copied to clipboard
js
open fun onDeviceBackButton(callback: (event: BackButtonEvent) -> Unit)
Sets device back button event listener.
onDeviceBackButtonClear
Link copied to clipboard
js
open fun onDeviceBackButtonClear()
Clears device back button event listener.
remove
Link copied to clipboard
js
open override fun remove(child: Component): SimplePanel
Removes given component from the current container.
removeAll
Link copied to clipboard
js
open override fun removeAll(): SimplePanel
Removes all children from the current container.
removeAt
Link copied to clipboard
js
open override fun removeAt(position: Int): SimplePanel
Removes child component from the current container at the given position.
removeAttribute
Link copied to clipboard
js
open override fun removeAttribute(name: String): Widget
Removes the value of additional attribute.
removeCssClass
Link copied to clipboard
js
open override fun removeCssClass(css: String): Widget
Removes given value from the set of CSS classes generated in html code of current component.
removeCssStyle
Link copied to clipboard
js
open override fun removeCssStyle(css: Style): Widget
Removes given style object from the set of CSS classes generated in html code of current component.
removeEventListener
Link copied to clipboard
js
open fun removeEventListener(id: Int): Widget
Removes event listener from current widget.
removeEventListeners
Link copied to clipboard
js
open fun removeEventListeners(): Widget
Removes all event listeners from current widget.
removeStyle
Link copied to clipboard
js
fun removeStyle(name: String): StyledComponent
Removes the value of a custom CSS style.
removeSurroundingCssClass
Link copied to clipboard
js
open override fun removeSurroundingCssClass(css: String): Widget
Removes given value from the set of CSS classes generated in html code of parent component.
removeSurroundingCssStyle
Link copied to clipboard
js
open override fun removeSurroundingCssStyle(css: Style): Widget
Removes given style object from the set of CSS classes generated in html code of parent component.
setAttribute
Link copied to clipboard
js
open override fun setAttribute(name: String, value: String): Widget
Sets the value of additional attribute.
setDragDropData
Link copied to clipboard
js
open fun setDragDropData(format: String, data: String)
Sets D&D data for the current widget.
setDropTarget
Link copied to clipboard
js
open fun setDropTarget(format: String, callback: (<ERROR CLASS>) -> Unit)
Sets the current widget as a D&D drop target.
open fun setDropTarget(formats: Set<String>? = null, callback: (<ERROR CLASS>) -> Unit)
Sets the current widget as a D&D drop target.
setDropTargetData
Link copied to clipboard
js
open fun setDropTargetData(format: String, callback: (String?) -> Unit)
Sets the current widget as a D&D drop target with helper callback accepting String data.
setEventListener
Link copied to clipboard
js
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int
Sets an event listener for current widget, keeping the actual type of component.
setStyle
Link copied to clipboard
js
fun setStyle(name: String, value: String): StyledComponent
Sets the value of a custom CSS style.
show
Link copied to clipboard
js
open fun show(): Widget
Makes current widget visible.
showAnim
Link copied to clipboard
js
open fun showAnim(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null): Widget
Shows current widget with animation effect.
showPopover
Link copied to clipboard
js
open fun showPopover(): Widget
Shows popover for the current widget.
showTooltip
Link copied to clipboard
js
open fun showTooltip(): Widget
Shows tooltip for the current widget.
singleRender
Link copied to clipboard
js
open override fun <T> singleRender(block: () -> T): T
Executes given function within a single rendering process.
singleRenderAsync
Link copied to clipboard
js
open override fun singleRenderAsync(block: () -> Unit)
Executes given function within a single rendering process asynchronously.
slideDown
Link copied to clipboard
js
open fun slideDown(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null): Widget
Shows current widget with slide down effect.
slideUp
Link copied to clipboard
js
open fun slideUp(duration: Int = 400, easing: Easing = Easing.SWING, complete: () -> Unit? = null): Widget
Hides current widget with slide up effect.
toggleVisible
Link copied to clipboard
js
open fun toggleVisible(): Widget
Toggles visibility of current widget.
unaryPlus
Link copied to clipboard
js
open operator fun String.unaryPlus()
An operator to add a text node to the container.

Properties

alignContent
Link copied to clipboard
js
open var alignContent: AlignContent?
CSS flexbox/grid content alignment.
alignItems
Link copied to clipboard
js
open var alignItems: AlignItems?
CSS flexbox/grid items alignment.
alignSelf
Link copied to clipboard
js
open var alignSelf: AlignItems?
CSS flexbox items self-alignment.
background
Link copied to clipboard
js
open var background: Background?
Background of the current component.
border
Link copied to clipboard
js
open var border: Border?
Border of the current component.
borderBottom
Link copied to clipboard
js
open var borderBottom: Border?
Bottom border of the current component.
borderLeft
Link copied to clipboard
js
open var borderLeft: Border?
Left border of the current component.
borderRadius
Link copied to clipboard
js
open var borderRadius: <ERROR CLASS><Number, UNIT>?
CSS border radius.
borderRadiusList
Link copied to clipboard
js
open var borderRadiusList: List<<ERROR CLASS><Number, UNIT>>?
List of CSS border radius values.
borderRight
Link copied to clipboard
js
open var borderRight: Border?
Right border of the current component.
borderTop
Link copied to clipboard
js
open var borderTop: Border?
Top border of the current component.
bottom
Link copied to clipboard
js
open var bottom: <ERROR CLASS><Number, UNIT>?
Bottom edge of the current component.
boxShadow
Link copied to clipboard
js
open var boxShadow: BoxShadow?
Box shadow of the current component.
boxShadowList
Link copied to clipboard
js
open var boxShadowList: List<BoxShadow>?
List of box shadows of the current component.
clear
Link copied to clipboard
js
open var clear: Clear?
CSS clear float of the current component.
color
Link copied to clipboard
js
open var color: Color?
Text color for the current component.
colorHex
Link copied to clipboard
js
open var colorHex: Int?
Text color for the current component given in hex format (write only).
colorName
Link copied to clipboard
js
open var colorName: Col?
Text color for the current component given with named constant (write only).
content
Link copied to clipboard
js
val content: <ERROR CLASS>?
A dynamic property returning current content element.
cursor
Link copied to clipboard
js
open var cursor: Cursor?
CSS cursor shape over the current component.
display
Link copied to clipboard
js
open var display: Display?
CSS display of the current component.
draggable
Link copied to clipboard
js
var draggable: Boolean?
Determines if the current widget is draggable.
eventTarget
Link copied to clipboard
js
var eventTarget: Widget? = null
flexBasis
Link copied to clipboard
js
open var flexBasis: <ERROR CLASS><Number, UNIT>?
CSS flexbox item basis.
flexDirection
Link copied to clipboard
js
open var flexDirection: FlexDirection?
CSS flexbox direction.
flexGrow
Link copied to clipboard
js
open var flexGrow: Int?
CSS flexbox item grow.
flexShrink
Link copied to clipboard
js
open var flexShrink: Int?
CSS flexbox item shrink.
flexWrap
Link copied to clipboard
js
open var flexWrap: FlexWrap?
CSS flexbox wrap mode.
float
Link copied to clipboard
js
open var float: PosFloat?
CSS position float of the current component.
fontFamily
Link copied to clipboard
js
open var fontFamily: String?
CSS font family of the current component.
fontSize
Link copied to clipboard
js
open var fontSize: <ERROR CLASS><Number, UNIT>?
CSS font size of the current component.
fontStyle
Link copied to clipboard
js
open var fontStyle: FontStyle?
CSS font style of the current component.
fontVariant
Link copied to clipboard
js
open var fontVariant: FontVariant?
CSS font variant of the current component.
fontWeight
Link copied to clipboard
js
open var fontWeight: FontWeight?
CSS font weight of the current component.
gridArea
Link copied to clipboard
js
open var gridArea: String?
CSS grid area.
gridAutoColumns
Link copied to clipboard
js
open var gridAutoColumns: String?
CSS grid auto columns.
gridAutoFlow
Link copied to clipboard
js
open var gridAutoFlow: GridAutoFlow?
CSS grid auto flow.
gridAutoRows
Link copied to clipboard
js
open var gridAutoRows: String?
CSS grid auto rows.
gridColumnEnd
Link copied to clipboard
js
open var gridColumnEnd: String?
CSS grid column end.
gridColumnGap
Link copied to clipboard
js
open var gridColumnGap: Int?
CSS grid column gap.
gridColumnStart
Link copied to clipboard
js
open var gridColumnStart: Int?
CSS grid column start.
gridRowEnd
Link copied to clipboard
js
open var gridRowEnd: String?
CSS grid row end.
gridRowGap
Link copied to clipboard
js
open var gridRowGap: Int?
CSS grid row gap.
gridRowStart
Link copied to clipboard
js
open var gridRowStart: Int?
CSS grid row start.
gridTemplateAreas
Link copied to clipboard
js
open var gridTemplateAreas: List<String>?
CSS grid areas template.
gridTemplateColumns
Link copied to clipboard
js
open var gridTemplateColumns: String?
CSS grid columns template.
gridTemplateRows
Link copied to clipboard
js
open var gridTemplateRows: String?
CSS grid rows template.
height
Link copied to clipboard
js
open var height: <ERROR CLASS><Number, UNIT>?
Height of the current component.
id
Link copied to clipboard
js
var id: String?
An ID attribute of generated HTML element.
justifyContent
Link copied to clipboard
js
open var justifyContent: JustifyContent?
CSS flexbox/grid content justification.
justifyItems
Link copied to clipboard
js
open var justifyItems: JustifyItems?
CSS grid items justification.
justifySelf
Link copied to clipboard
js
open var justifySelf: JustifyItems?
CSS grid items self-justification.
left
Link copied to clipboard
js
open var left: <ERROR CLASS><Number, UNIT>?
Left edge of the current component.
leftSide
Link copied to clipboard
js
val leftSide: <ERROR CLASS>?
A dynamic property returning current left side element.
letterSpacing
Link copied to clipboard
js
open var letterSpacing: <ERROR CLASS><Number, UNIT>?
CSS Text letter spacing of the current component.
lineBreak
Link copied to clipboard
js
open var lineBreak: LineBreak?
CSS line break of the current component.
lineHeight
Link copied to clipboard
js
open var lineHeight: <ERROR CLASS><Number, UNIT>?
CSS Text line height of the current component.
margin
Link copied to clipboard
js
open var margin: <ERROR CLASS><Number, UNIT>?
Margin of the current component.
marginBottom
Link copied to clipboard
js
open var marginBottom: <ERROR CLASS><Number, UNIT>?
Bottom margin of the current component.
marginLeft
Link copied to clipboard
js
open var marginLeft: <ERROR CLASS><Number, UNIT>?
Left margin of the current component.
marginRight
Link copied to clipboard
js
open var marginRight: <ERROR CLASS><Number, UNIT>?
Right margin of the current component.
marginTop
Link copied to clipboard
js
open var marginTop: <ERROR CLASS><Number, UNIT>?
Top margin of the current component.
maxHeight
Link copied to clipboard
js
open var maxHeight: <ERROR CLASS><Number, UNIT>?
Maximal height of the current component.
maxWidth
Link copied to clipboard
js
open var maxWidth: <ERROR CLASS><Number, UNIT>?
Maximal width of the current component.
minHeight
Link copied to clipboard
js
open var minHeight: <ERROR CLASS><Number, UNIT>?
Minimal height of the current component.
minWidth
Link copied to clipboard
js
open var minWidth: <ERROR CLASS><Number, UNIT>?
Minimal width of the current component.
opacity
Link copied to clipboard
js
open var opacity: Double?
Opacity of the current component.
order
Link copied to clipboard
js
open var order: Int?
CSS flexbox item order.
outline
Link copied to clipboard
js
open var outline: Outline?
Outline of the current component.
overflow
Link copied to clipboard
js
open var overflow: Overflow?
CSS overflow of the current component.
overflowWrap
Link copied to clipboard
js
open var overflowWrap: OverflowWrap?
CSS overflow-wrap of the current component.
padding
Link copied to clipboard
js
open var padding: <ERROR CLASS><Number, UNIT>?
Padding of the current component.
paddingBottom
Link copied to clipboard
js
open var paddingBottom: <ERROR CLASS><Number, UNIT>?
Bottom padding of the current component.
paddingLeft
Link copied to clipboard
js
open var paddingLeft: <ERROR CLASS><Number, UNIT>?
Left padding of the current component.
paddingRight
Link copied to clipboard
js
open var paddingRight: <ERROR CLASS><Number, UNIT>?
Right padding of the current component.
paddingTop
Link copied to clipboard
js
open var paddingTop: <ERROR CLASS><Number, UNIT>?
Top padding of the current component.
parent
Link copied to clipboard
js
open override var parent: Container? = null
Parent of the current component.
position
Link copied to clipboard
js
open var position: Position?
CSS position of the current component.
resize
Link copied to clipboard
js
open var resize: Resize?
CSS resize of the current component.
right
Link copied to clipboard
js
open var right: <ERROR CLASS><Number, UNIT>?
Right edge of the current component.
rightSide
Link copied to clipboard
js
val rightSide: <ERROR CLASS>?
A dynamic property returning current right side element.
role
Link copied to clipboard
js
var role: String?
A role attribute of generated HTML element.
side
Link copied to clipboard
js
val side: <ERROR CLASS>?
A dynamic property returning current first side element.
tabindex
Link copied to clipboard
js
var tabindex: Int?
A tabindex attribute of generated HTML element.
textAlign
Link copied to clipboard
js
open var textAlign: TextAlign?
CSS Text align of the current component.
textDecoration
Link copied to clipboard
js
open var textDecoration: TextDecoration?
CSS Text decoration of the current component.
textDirection
Link copied to clipboard
js
open var textDirection: Direction?
CSS Text direction of the current component.
textIndent
Link copied to clipboard
js
open var textIndent: <ERROR CLASS><Number, UNIT>?
CSS Text indent of the current component.
textOverflow
Link copied to clipboard
js
open var textOverflow: TextOverflow?
CSS Text overflow of the current component.
textShadow
Link copied to clipboard
js
open var textShadow: TextShadow?
CSS Text shadow of the current component.
textTransform
Link copied to clipboard
js
open var textTransform: TextTransform?
CSS Text transform of the current component.
title
Link copied to clipboard
js
var title: String?
A title attribute of generated HTML element.
top
Link copied to clipboard
js
open var top: <ERROR CLASS><Number, UNIT>?
Top edge of the current component.
transition
Link copied to clipboard
js
open var transition: Transition?
CSS transition effect for the current component.
transitionList
Link copied to clipboard
js
open var transitionList: List<Transition>?
List of CSS transition effects for the current component.
unicodeBidi
Link copied to clipboard
js
open var unicodeBidi: UnicodeBidi?
CSS Text unicode-bidi of the current component.
verticalAlign
Link copied to clipboard
js
open var verticalAlign: VerticalAlign?
CSS Text vertical align of the current component.
visible
Link copied to clipboard
js
open override var visible: Boolean = true
Visibility state of the current component.
whiteSpace
Link copied to clipboard
js
open var whiteSpace: WhiteSpace?
CSS Text white space of the current component.
width
Link copied to clipboard
js
open var width: <ERROR CLASS><Number, UNIT>?
Width of the current component.
wordBreak
Link copied to clipboard
js
open var wordBreak: WordBreak?
CSS word break of the current component.
wordSpacing
Link copied to clipboard
js
open var wordSpacing: <ERROR CLASS><Number, UNIT>?
CSS Text word spacing of the current component.
zIndex
Link copied to clipboard
js
open var zIndex: Int?
Z-index of the current component.

Extensions

splitterContent
Link copied to clipboard
js
fun Splitter.splitterContent(classes: Set<String>? = null, className: String? = null, init: SplitterContent.() -> Unit? = null): SplitterContent
DSL builder extension function.
splitterSide
Link copied to clipboard
js
fun Splitter.splitterSide(animation: SideAnimation? = null, swipeable: Boolean? = null, collapse: Collapse? = null, side: Side? = null, classes: Set<String>? = null, className: String? = null, init: SplitterSide.() -> Unit? = null): SplitterSide
DSL builder extension function.