From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+ Constructor Text align. Overrides Modal.hide Makes current widget invisible. Return Alert window based on Bootstrap modal. Text align. Determines if text can contain HTML code. Window content text. Determines if animations are used. Window caption text. Determines if Close button is visible. Window size. Makes current widget invisible. Adds given component to the current container. Adds a list of components to the current container. Adds given button to the bottom section of dialog window. Method called after inserting Snabbdom vnode into the DOM. Returns a list of children of the current container. 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. Removes given component from the current container. Removes all children from the current container. Removes all buttons from the bottom section of dialog window. Removes given button from the bottom section of dialog window. Toggle modal window visibility. Helper function for opening Alert window. Determines if text can contain HTML code. Helper function for opening Alert window.
+
+
+ Window content text. Helper class for close icon component. Overrides Widget.getSnAttrs Returns list of element attributes in the form of a List. Return Overrides Widget.getSnClass Returns list of CSS class names for current widget in the form of a List. Return Helper class for close icon component. Helper class for close icon component. Determines if the current widget is draggable. 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. 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. Renders current component as a Snabbdom vnode. 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. Clears D&D data for the current widget. It also makes it not draggable. 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 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 context menu for the current widget. Sets D&D data for the current widget. It also makes it draggable. Sets the current widget as a D&D drop target. Sets the current widget as a D&D drop target with helper callback accepting String data. 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. Overrides Widget.render Renders current component as a Snabbdom vnode. Return
+
+
+
+
+
+ Constructor Text align. Cancel button text. Determines if Cancel button is visible. Getter Determines if Cancel button is visible.
+
+<init>
+
+Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: () -> Unit = null)
+Parameters
+
+
+rich
- determines if text can contain HTML codeanimation
- determines if animations are usedcallback
- a function called after closing window with OK button
+
+
+align
+
+var align: Align?
+
+
+hide
+
+open fun hide(): Widget
+
+current widget
+
+Alert
+open class Alert : Modal
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: () -> Unit = null)
Properties
+
+
+
+
+
+
+
+
+
+
+var align: Align?
+
+
+
+
+
+
+
+var rich: Boolean
+
+
+
+
+
+
+
+
+var text: String?
+Inherited Properties
+
+
+
+
+
+
+
+
+
+
+var animation: Boolean
+
+
+
+
+
+
+
+var caption: String?
+
+
+
+
+
+
+
+var closeButton: Boolean
+
+
+
+
+
+
+
+
+var size: ModalSize?
+Functions
+
+
+
+
+
+
+
+
+
+
+
+open fun hide(): Widget
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+open fun add(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun addAll(children: List<Component>): SimplePanel
+
+
+
+
+
+
+
+open fun addButton(button: Button): Modal
+
+
+
+
+
+
+
+open fun afterInsert(node: VNode): Unit
+
+
+
+
+
+
+
+open fun getChildren(): List<Component>
+
+
+
+
+
+
+
+open fun getSnAttrs(): List<StringPair>
+
+
+
+
+
+
+
+open fun getSnClass(): List<StringBoolPair>
+
+
+
+
+
+
+
+open fun remove(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun removeAll(): SimplePanel
+
+
+
+
+
+
+
+open fun removeAllButtons(): Modal
+
+
+
+
+
+
+
+open fun removeButton(button: Button): Modal
+
+
+
+
+
+
+
+
+open fun toggle(): Unit
+Companion Object Functions
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.modal/-alert/rich.html b/api/pl.treksoft.kvision.modal/-alert/rich.html
new file mode 100644
index 00000000..68f4b08a
--- /dev/null
+++ b/api/pl.treksoft.kvision.modal/-alert/rich.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: () -> Unit = null): Unit
+
+
+rich
+
+var rich: Boolean
+
+
+show
+
+fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: () -> Unit = null): Unit
+Parameters
+
+
+rich
- determines if text can contain HTML codeanimation
- determines if animations are usedcallback
- a function called after closing window with OK button
+
+text
+
+var text: String?
+
+
+<init>
+
+CloseIcon()
+
+
+getSnAttrs
+
+protected open fun getSnAttrs(): List<StringPair>
+
+list of element attributes
+
+getSnClass
+
+protected open fun getSnClass(): List<StringBoolPair>
+
+list of CSS class names
+
+CloseIcon
+open class CloseIcon : Widget
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+CloseIcon()
+Inherited Properties
+
+
+
+
+
+
+
+
+
+
+var draggable: Boolean?
+
+
+
+
+
+
+
+var eventTarget: Widget?
+
+
+
+
+
+
+var id: String?
+
+
+
+
+
+
+
+var lastLanguage: String?
+
+
+
+
+
+
+open var parent: Container?
+
+
+
+
+
+
+
+var role: String?
+
+
+
+
+
+
+
+var surroundingSpan: Boolean
+
+
+
+
+
+
+var title: String?
+
+
+
+
+
+
+
+
+open var visible: Boolean
+Functions
+
+
+
+
+
+
+
+
+
+
+open fun getSnAttrs(): List<StringPair>
+
+
+
+
+
+
+
+open fun getSnClass(): List<StringBoolPair>
+
+
+
+
+
+
+
+
+open fun render(): VNode
+Inherited Functions
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.modal/-close-icon/render.html b/api/pl.treksoft.kvision.modal/-close-icon/render.html
new file mode 100644
index 00000000..4e0accce
--- /dev/null
+++ b/api/pl.treksoft.kvision.modal/-close-icon/render.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+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 clearDragDropData(): Unit
+
+
+
+
+
+
+
+open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?
+
+
+
+
+
+
+open fun getElement(): Node?
+
+
+
+
+
+
+
+open fun getElementJQuery(): JQuery?
+
+
+
+
+
+
+
+open fun getElementJQueryD(): dynamic
+
+
+
+
+
+
+
+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(elementName: String): VNode
+open fun render(elementName: String, children: Array<dynamic>): VNode
+
+
+
+
+
+
+
+open fun setContextMenu(contextMenu: ContextMenu): Widget
+
+
+
+
+
+
+
+open fun setDragDropData(format: String, data: String): Unit
+
+
+
+
+
+
+
+open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit
+open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit
+
+
+
+
+
+
+
+open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+fun translate(text: String?): String?
+
+render
+
+protected open fun render(): VNode
+
+Snabbdom vnode
+
+<init>
+
+Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null)
+Parameters
+
+
+rich
- determines if text can contain HTML codeanimation
- determines if animations are usedcancelVisible
- determines if Cancel button is visiblecancelTitle
- cancel button textnoCallback
- a function called after closing window with No buttonyesCallback
- a function called after closing window with Yes button
+
+
+align
+
+var align: Align?
+
+
+cancelTitle
+
+var cancelTitle: String
+
+
+cancelVisible
+
+var cancelVisible: Boolean
+
+
Setter
+
Determines if Cancel button is visible.
+ + + diff --git a/api/pl.treksoft.kvision.modal/-confirm/index.html b/api/pl.treksoft.kvision.modal/-confirm/index.html new file mode 100644 index 00000000..2d4ecbbb --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/index.html @@ -0,0 +1,271 @@ + + + +open class Confirm : Modal
+Confirm window based on Bootstrap modal.
++ + | +
+Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null) |
+
+ + | +
+var align: Align?
+Text align. + |
+
+ + | +
+var cancelTitle: String
+Cancel button text. + |
+
+ + | +
+var cancelVisible: Boolean
+Determines if Cancel button is visible. + |
+
+ + | +
+var noTitle: String
+No button text. + |
+
+ + | +
+var rich: Boolean
+Determines if text can contain HTML code. + |
+
+ + | +
+var text: String?
+Window content text. + |
+
+ + | +
+var yesTitle: String
+Yes button text. + |
+
+ + | +
+var animation: Boolean
+Determines if animations are used. + |
+
+ + | +
+var caption: String?
+Window caption text. + |
+
+ + | +
+var closeButton: Boolean
+Determines if Close button is visible. + |
+
+ + | +
+var size: ModalSize?
+Window size. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
+ + | +
+open fun addButton(button: Button): Modal
+Adds given button to the bottom section of dialog window. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun hide(): Widget
+Makes current widget invisible. + |
+
+ + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
+ + | +
+open fun removeAllButtons(): Modal
+Removes all buttons from the bottom section of dialog window. + |
+
+ + | +
+open fun removeButton(button: Button): Modal
+Removes given button from the bottom section of dialog window. + |
+
+ + | +
+open fun toggle(): Unit
+Toggle modal window visibility. + |
+
+ + | +
+fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit
+Helper function for opening Confirm window. + |
+
var noTitle: String
+No button text.
+ + diff --git a/api/pl.treksoft.kvision.modal/-confirm/rich.html b/api/pl.treksoft.kvision.modal/-confirm/rich.html new file mode 100644 index 00000000..bec66a34 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/rich.html @@ -0,0 +1,15 @@ + + + +var rich: Boolean
+Determines if text can contain HTML code.
+ + diff --git a/api/pl.treksoft.kvision.modal/-confirm/show.html b/api/pl.treksoft.kvision.modal/-confirm/show.html new file mode 100644 index 00000000..be7a4c93 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/show.html @@ -0,0 +1,34 @@ + + + +fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit
+Helper function for opening Confirm window.
+
+rich
- determines if text can contain HTML code
+animation
- determines if animations are used
+cancelVisible
- determines if Cancel button is visible
+noCallback
- a function called after closing window with No button
+yesCallback
- a function called after closing window with Yes button
var text: String?
+Window content text.
+ + diff --git a/api/pl.treksoft.kvision.modal/-confirm/yes-title.html b/api/pl.treksoft.kvision.modal/-confirm/yes-title.html new file mode 100644 index 00000000..05a653f7 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/yes-title.html @@ -0,0 +1,15 @@ + + + +var yesTitle: String
+Yes button text.
+ + diff --git a/api/pl.treksoft.kvision.modal/-dialog/-init-.html b/api/pl.treksoft.kvision.modal/-dialog/-init-.html new file mode 100644 index 00000000..e7ae6cae --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/-init-.html @@ -0,0 +1,31 @@ + + + +Dialog(caption: String? = null, closeButton: Boolean = true, size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Dialog<R>.() -> Unit = null)
+
+closeButton
- determines if Close button is visible
+animation
- determines if animations are used
+escape
- determines if dialog can be closed with Esc key
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
suspend fun getResult(): R?
+A suspending function returning result value.
+ + diff --git a/api/pl.treksoft.kvision.modal/-dialog/hide.html b/api/pl.treksoft.kvision.modal/-dialog/hide.html new file mode 100644 index 00000000..1fe643eb --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/hide.html @@ -0,0 +1,18 @@ + + + +open fun hide(): Widget
+Overrides Modal.hide
+Makes current widget invisible.
+Return
+current widget
open class Dialog<R> : Modal
+Modal window with a result.
++ + | +
+Dialog(caption: String? = null, closeButton: Boolean = true, size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Dialog<R>.() -> Unit = null) |
+
+ + | +
+var animation: Boolean
+Determines if animations are used. + |
+
+ + | +
+var caption: String?
+Window caption text. + |
+
+ + | +
+var closeButton: Boolean
+Determines if Close button is visible. + |
+
+ + | +
+var size: ModalSize?
+Window size. + |
+
+ + | +
+suspend fun getResult(): R?
+A suspending function returning result value. + |
+
+ + | +
+open fun hide(): Widget
+Makes current widget invisible. + |
+
+ + | +
+open fun setResult(result: R?): Unit
+A function to be called with a result value. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
+ + | +
+open fun addButton(button: Button): Modal
+Adds given button to the bottom section of dialog window. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
+ + | +
+open fun removeAllButtons(): Modal
+Removes all buttons from the bottom section of dialog window. + |
+
+ + | +
+open fun removeButton(button: Button): Modal
+Removes given button from the bottom section of dialog window. + |
+
+ + | +
+open fun toggle(): Unit
+Toggle modal window visibility. + |
+
open fun setResult(result: R?): Unit
+A function to be called with a result value.
+ + diff --git a/api/pl.treksoft.kvision.modal/-modal-size/-l-a-r-g-e.html b/api/pl.treksoft.kvision.modal/-modal-size/-l-a-r-g-e.html new file mode 100644 index 00000000..9884a5ab --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-modal-size/-l-a-r-g-e.html @@ -0,0 +1,26 @@ + + + +LARGE
++ + | +
+val className: String |
+
SMALL
++ + | +
+val className: String |
+
val className: String
+
+
diff --git a/api/pl.treksoft.kvision.modal/-modal-size/index.html b/api/pl.treksoft.kvision.modal/-modal-size/index.html
new file mode 100644
index 00000000..4b88ad07
--- /dev/null
+++ b/api/pl.treksoft.kvision.modal/-modal-size/index.html
@@ -0,0 +1,45 @@
+
+
+
+enum class ModalSize
+Modal window sizes.
++ + | ++ | +
+ + | ++ | +
+ + | +
+val className: String |
+
Modal(caption: String? = null, closeButton: Boolean = true, size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Modal.() -> Unit = null)
+
+closeButton
- determines if Close button is visible
+animation
- determines if animations are used
+escape
- determines if dialog can be closed with Esc key
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
open fun addAll(children: List<Component>): SimplePanel
+Overrides SimplePanel.addAll
+Adds a list of components to the current container.
+
+children
- list of child components
Return
+current container
open fun addButton(button: Button): Modal
+Adds given button to the bottom section of dialog window.
+
+button
- a Button component
Return
+this modal
open fun add(child: Component): SimplePanel
+Overrides SimplePanel.add
+Adds given component to the current container.
+Return
+current container
protected open fun afterInsert(node: VNode): Unit
+Overrides Widget.afterInsert
+Method called after inserting Snabbdom vnode into the DOM.
+ + diff --git a/api/pl.treksoft.kvision.modal/-modal/animation.html b/api/pl.treksoft.kvision.modal/-modal/animation.html new file mode 100644 index 00000000..d61b11b7 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-modal/animation.html @@ -0,0 +1,21 @@ + + + +var animation: Boolean
+Determines if animations are used.
+Getter
+
Determines if animations are used.
+ +Setter
+
Determines if animations are used.
+ + + diff --git a/api/pl.treksoft.kvision.modal/-modal/caption.html b/api/pl.treksoft.kvision.modal/-modal/caption.html new file mode 100644 index 00000000..cca2f4cc --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-modal/caption.html @@ -0,0 +1,15 @@ + + + +var caption: String?
+Window caption text.
+ + diff --git a/api/pl.treksoft.kvision.modal/-modal/close-button.html b/api/pl.treksoft.kvision.modal/-modal/close-button.html new file mode 100644 index 00000000..4810bdbb --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-modal/close-button.html @@ -0,0 +1,15 @@ + + + +var closeButton: Boolean
+Determines if Close button is visible.
+ + diff --git a/api/pl.treksoft.kvision.modal/-modal/get-children.html b/api/pl.treksoft.kvision.modal/-modal/get-children.html new file mode 100644 index 00000000..52431771 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-modal/get-children.html @@ -0,0 +1,18 @@ + + + +open fun getChildren(): List<Component>
+Overrides SimplePanel.getChildren
+Returns a list of children of the current container.
+Return
+list of children
protected open fun getSnAttrs(): List<StringPair>
+Overrides Widget.getSnAttrs
+Returns list of element attributes in the form of a List.
+Return
+list of element attributes
protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
open fun hide(): Widget
+Overrides Widget.hide
+Makes current widget invisible.
+Return
+current widget
open class Modal : SimplePanel
+Configurable modal window based on Bootstrap modal.
++ + | +
+Modal(caption: String? = null, closeButton: Boolean = true, size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Modal.() -> Unit = null) |
+
+ + | +
+var animation: Boolean
+Determines if animations are used. + |
+
+ + | +
+var caption: String?
+Window caption text. + |
+
+ + | +
+var closeButton: Boolean
+Determines if Close button is visible. + |
+
+ + | +
+var size: ModalSize?
+Window size. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
+ + | +
+open fun addButton(button: Button): Modal
+Adds given button to the bottom section of dialog window. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun hide(): Widget
+Makes current widget invisible. + |
+
+ + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
+ + | +
+open fun removeAllButtons(): Modal
+Removes all buttons from the bottom section of dialog window. + |
+
+ + | +
+open fun removeButton(button: Button): Modal
+Removes given button from the bottom section of dialog window. + |
+
+ + | +
+open fun toggle(): Unit
+Toggle modal window visibility. + |
+
+ + | +
+fun addInternal(child: Component): SimplePanel
+Protected and final method to add given component to the current container. + |
+
+ + | +
+open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open class Alert : Modal
+Alert window based on Bootstrap modal. + |
+
+ + | +
+open class Confirm : Modal
+Confirm window based on Bootstrap modal. + |
+
+ + | +
+open class Dialog<R> : Modal
+Modal window with a result. + |
+
open fun removeAllButtons(): Modal
+Removes all buttons from the bottom section of dialog window.
+Return
+this modal
open fun removeAll(): SimplePanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun removeButton(button: Button): Modal
+Removes given button from the bottom section of dialog window.
+
+button
- a Button component
Return
+this modal
open fun remove(child: Component): SimplePanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
var size: ModalSize?
+Window size.
+ + diff --git a/api/pl.treksoft.kvision.modal/-modal/toggle.html b/api/pl.treksoft.kvision.modal/-modal/toggle.html new file mode 100644 index 00000000..a4c26897 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-modal/toggle.html @@ -0,0 +1,15 @@ + + + +open fun toggle(): Unit
+Toggle modal window visibility.
+ + diff --git a/api/pl.treksoft.kvision.modal/index.html b/api/pl.treksoft.kvision.modal/index.html new file mode 100644 index 00000000..1c66e42d --- /dev/null +++ b/api/pl.treksoft.kvision.modal/index.html @@ -0,0 +1,72 @@ + + + +Classes supporting general purpose Bootstrap modals with convenient helpers for alert and confirm popup dialogs.
++ + | +
+open class Alert : Modal
+Alert window based on Bootstrap modal. + |
+
+ + | +
+open class CloseIcon : Widget
+Helper class for close icon component. + |
+
+ + | +
+open class Confirm : Modal
+Confirm window based on Bootstrap modal. + |
+
+ + | +
+open class Dialog<R> : Modal
+Modal window with a result. + |
+
+ + | +
+open class Modal : SimplePanel
+Configurable modal window based on Bootstrap modal. + |
+
+ + | +
+enum class ModalSize
+Modal window sizes. + |
+