From d8cd67062b8de6e8398dc6dfd00d201200c82414 Mon Sep 17 00:00:00 2001
From: Robert Jaros Creates basic Widget with given CSS class names.
+ Constructor Overrides Component.addCssClass Adds given value to the set of CSS classes generated in html code of current component. Return Overrides Component.addSurroundingCssClass Adds given value to the set of CSS classes generated in html code of parent component. Return Method called after creating Snabbdom vnode. Method called after destroying Snabbdom vnode. Method called after inserting Snabbdom vnode into the DOM. Method called after updating Snabbdom vnode. Overrides Component.getElementJQueryD Returns JQuery element bound to the current component as a dynamic type. Return Overrides Component.getElementJQuery Returns JQuery element bound to the current component. Return Overrides Component.getElement Returns DOM element bound to the current component. Return Returns list of element attributes in the form of a List. Return Returns list of CSS class names for current widget in the form of a List. Return Returns list of hooks in the form of a Snabbdom Hooks object. Return Returns list of event handlers in the form of a Snabbdom On object. Return Makes current widget invisible. Return An ID attribute of generated HTML element. Base widget class. The parent of all component classes. A simple widget is rendered as HTML DIV element. Creates basic Widget with given CSS class names. An ID attribute of generated HTML element. Parent of the current component. A role attribute of generated HTML element. A title attribute of generated HTML element. Visibility state of the current component. Background of the current component. Border of the current component. Bottom border of the current component. Left border of the current component. Right border of the current component. Top border of the current component. Text color for the current component. Text color for the current component given in hex format (write only). Text color for the current component given with named constant (write only). Height of the current component. Margin of the current component. Bottom margin of the current component. Left margin of the current component. Right margin of the current component. Top margin of the current component. Maximal height of the current component. Maximal width of the current component. Minimal height of the current component. Minimal width of the current component. Opacity of the current component. Padding of the current component. Bottom padding of the current component. Left padding of the current component. Right padding of the current component. Top padding of the current component. Width of the current component. Adds given value to the set of CSS classes generated in html code of current component. Adds given value to the set of CSS classes generated in html code of parent component. Method called after creating Snabbdom vnode. Method called after destroying Snabbdom vnode. Method called after inserting Snabbdom vnode into the DOM. Method called after updating Snabbdom vnode. Returns DOM element bound to the current component. Returns JQuery element bound to the current component. Returns JQuery element bound to the current component as a dynamic type. Returns list of element attributes in the form of a List. Returns list of CSS class names for current widget in the form of a List. Returns list of hooks in the form of a Snabbdom Hooks object. Returns list of event handlers in the form of a Snabbdom On object. Makes current widget invisible. Removes given value from the set of CSS classes generated in html code of current component. Removes all event listeners from current widget. Removes given value from the set of CSS classes generated in html code of parent component. Renders current component as a Snabbdom vnode. Sets an event listener for current widget, keeping the actual type of component. Sets an event listener for current widget. Makes current widget visible. Toggles visibility of current widget. Returns the list of String pairs defining CSS style attributes and their values. Base class for basic text components. Button component. The basic input component rendered as HTML input type="checkbox" or input type="radio". Helper class for close icon component. A container class with support for observable data model. Basic date/time chooser component. Image component. The helper component for adding options to Select or SelectOptGroup. Basic container class, rendered as a DIV element with all children directly within. The basic component for spinner control. This class allows to wrap a component into separately styled DIV element. Overrides Component.parent Parent of the current component. Overrides Component.removeCssClass Removes given value from the set of CSS classes generated in html code of current component. Return Removes all event listeners from current widget. Return Overrides Component.removeSurroundingCssClass Removes given value from the set of CSS classes generated in html code of parent component. Return Renders current component as a Snabbdom vnode. Return Renders current component as a Snabbdom vnode.
+ Return Renders current component as a Snabbdom vnode.
+
+ Return A role attribute of generated HTML element. Sets an event listener for current widget, keeping the actual type of component. Return current widget Example:
+
+<init>
+
+Widget(classes: Set<String> = setOf())
+Parameters
+classes
- Set of CSS class names
+Creates basic Widget with given CSS class names.
+
+addCssClass
+
+open fun addCssClass(css: String): Widget
+Parameters
+
+
+current component
+
+addSurroundingCssClass
+
+open fun addSurroundingCssClass(css: String): Widget
+Parameters
+
+
+current component
+
+afterCreate
+
+protected open fun afterCreate(node: VNode): Unit
+
+
+afterDestroy
+
+protected open fun afterDestroy(): Unit
+
+
+afterInsert
+
+protected open fun afterInsert(node: VNode): Unit
+
+
+afterPostpatch
+
+protected open fun afterPostpatch(node: VNode): Unit
+
+
+getElementJQueryD
+
+open fun getElementJQueryD(): dynamic
+
+JQuery element as a dynamic type
+
+getElementJQuery
+
+open fun getElementJQuery(): JQuery?
+
+JQuery element
+
+getElement
+
+open fun getElement(): Node?
+
+DOM element
+
+getSnAttrs
+
+protected open fun getSnAttrs(): List<StringPair>
+
+list of element attributes
+
+getSnClass
+
+protected open fun getSnClass(): List<StringBoolPair>
+
+list of CSS class names
+
+getSnHooks
+
+protected open fun getSnHooks(): Hooks?
+
+list of hooks
+
+getSnOn
+
+protected open fun getSnOn(): On?
+
+list of event handlers
+
+hide
+
+open fun hide(): Widget
+
+current widget
+
+id
+
+var id: String?
+
+
+Widget
+open class Widget : StyledComponent
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+Widget(classes: Set<String> = setOf())
+Properties
+
+
+
+
+
+
+
+
+
+
+var id: String?
+
+
+
+
+
+
+
+open var parent: Component?
+
+
+
+
+
+
+
+var role: String?
+
+
+
+
+
+
+
+var title: String?
+
+
+
+
+
+
+
+
+open var visible: Boolean
+Inherited Properties
+
+
+
+
+
+
+
+
+
+
+var background: Background?
+
+
+
+
+
+
+
+var border: Border?
+
+
+
+
+
+
+
+var borderBottom: Border?
+
+
+
+
+
+
+
+var borderLeft: Border?
+
+
+
+
+
+
+
+var borderRight: Border?
+
+
+
+
+
+
+
+var borderTop: Border?
+
+
+
+
+
+
+
+var color: Color?
+
+
+
+
+
+
+
+var colorHex: Int?
+
+
+
+
+
+
+
+var colorName: COLOR?
+
+
+
+
+
+
+
+var height: CssSize?
+
+
+
+
+
+
+
+var margin: CssSize?
+
+
+
+
+
+
+
+var marginBottom: CssSize?
+
+
+
+
+
+
+
+var marginLeft: CssSize?
+
+
+
+
+
+
+
+var marginRight: CssSize?
+
+
+
+
+
+
+
+var marginTop: CssSize?
+
+
+
+
+
+
+
+var maxHeight: CssSize?
+
+
+
+
+
+
+
+var maxWidth: CssSize?
+
+
+
+
+
+
+
+var minHeight: CssSize?
+
+
+
+
+
+
+
+var minWidth: CssSize?
+
+
+
+
+
+
+
+var opacity: Double?
+
+
+
+
+
+
+
+var padding: CssSize?
+
+
+
+
+
+
+
+var paddingBottom: CssSize?
+
+
+
+
+
+
+
+var paddingLeft: CssSize?
+
+
+
+
+
+
+
+var paddingRight: CssSize?
+
+
+
+
+
+
+
+var paddingTop: CssSize?
+
+
+
+
+
+
+
+
+open var width: CssSize?
+Functions
+
+
+
+
+
+
+
+
+
+
+open fun addCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun addSurroundingCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun afterCreate(node: VNode): Unit
+
+
+
+
+
+
+
+open fun afterDestroy(): Unit
+
+
+
+
+
+
+
+open fun afterInsert(node: VNode): Unit
+
+
+
+
+
+
+
+open fun afterPostpatch(node: VNode): Unit
+
+
+
+
+
+
+
+open fun getElement(): Node?
+
+
+
+
+
+
+
+open fun getElementJQuery(): JQuery?
+
+
+
+
+
+
+
+open fun getElementJQueryD(): dynamic
+
+
+
+
+
+
+
+open fun getSnAttrs(): List<StringPair>
+
+
+
+
+
+
+
+open fun getSnClass(): List<StringBoolPair>
+
+
+
+
+
+
+
+open fun getSnHooks(): Hooks?
+
+
+
+
+
+
+
+open fun getSnOn(): On?
+
+
+
+
+
+
+
+open fun hide(): Widget
+
+
+
+
+
+
+
+open fun removeCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun removeEventListeners(): Widget
+
+
+
+
+
+
+
+open fun removeSurroundingCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun render(): VNode
+open fun render(elementName: String): VNode
+open fun render(elementName: String, children: Array<dynamic>): VNode
+
+
+
+
+
+
+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+
+
+
+
+
+
+
+open fun show(): Widget
+
+
+
+
+
+
+
+
+open fun toggleVisible(): Widget
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+
+open fun getSnStyle(): List<StringPair>
+Inheritors
+
+
+
+
+
diff --git a/docs/api/pl.treksoft.kvision.core/-widget/parent.html b/docs/api/pl.treksoft.kvision.core/-widget/parent.html
new file mode 100644
index 00000000..c841d124
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.core/-widget/parent.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+abstract class AbstractTextInput : Widget
+
+
+
+
+
+
+
+open class Button : Widget
+
+
+
+
+
+
+
+open class CheckInput : Widget
+
+
+
+
+
+
+
+open class CloseIcon : Widget
+
+
+
+
+
+
+
+class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
+
+
+
+
+
+
+
+open class DateTimeInput : Widget
+
+
+
+
+
+
+
+open class Image : Widget
+
+
+
+
+
+
+
+open class SelectOption : Widget
+
+
+
+
+
+
+
+open class SimplePanel : Widget, Container
+
+
+
+
+
+
+
+open class SpinnerInput : Widget
+
+
+
+
+
+
+
+
+open class WidgetWrapper : Widget
+
+
+parent
+
+open var parent: Component?
+
+
+removeCssClass
+
+open fun removeCssClass(css: String): Widget
+Parameters
+
+
+current component
+
+removeEventListeners
+
+open fun removeEventListeners(): Widget
+
+current widget
+
+removeSurroundingCssClass
+
+open fun removeSurroundingCssClass(css: String): Widget
+Parameters
+
+
+current component
+
+render
+
+protected open fun render(): VNode
+
+Snabbdom vnodeprotected open fun render(elementName: String): VNode
+Parameters
+elementName
- HTML element name
+Snabbdom vnodeprotected open fun render(elementName: String, children: Array<dynamic>): VNode
+Parameters
+elementName
- HTML element namechildren
- array of children nodes
+Snabbdom vnode
+
+role
+
+var role: String?
+
+
+setEventListener
+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Parameters
+
+
+
+ button.setEventListener<Button> {
+ dblclick = {
+ Alert.show("Button double clicked!")
+ // self is of type Button here
+ }
+ }
open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Sets an event listener for current widget.
+Return
+
current widget
+ + +Example:
+ + + button.setEventListener {
+ dblclick = {
+ Alert.show("Button double clicked!")
+ // self is of type Widget here
+ }
+ }
+
+
diff --git a/docs/api/pl.treksoft.kvision.core/-widget/show.html b/docs/api/pl.treksoft.kvision.core/-widget/show.html
new file mode 100644
index 00000000..05e0f752
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.core/-widget/show.html
@@ -0,0 +1,17 @@
+
+
+
+open fun show(): Widget
+Makes current widget visible.
+Return
+current widget
var title: String?
+A title attribute of generated HTML element.
+ + diff --git a/docs/api/pl.treksoft.kvision.core/-widget/toggle-visible.html b/docs/api/pl.treksoft.kvision.core/-widget/toggle-visible.html new file mode 100644 index 00000000..8e7aa167 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.core/-widget/toggle-visible.html @@ -0,0 +1,17 @@ + + + +open fun toggleVisible(): Widget
+Toggles visibility of current widget.
+Return
+current widget
open var visible: Boolean
+Overrides Component.visible
+Visibility state of the current component.
+Setter
+
Visibility state of the current component.
+ + + -- cgit