Modal

open class Modal(    caption: String? = null,     closeButton: Boolean = true,     size: ModalSize? = null,     animation: Boolean = true,     centered: Boolean = false,     scrollable: Boolean = false,     escape: Boolean = true,     className: String? = null,     init: Modal.() -> Unit? = null)

Configurable modal window based on Bootstrap modal.

Parameters

caption

window title

closeButton

determines if Close button is visible

size

modal window size

animation

determines if animations are used

centered

determines if modal dialog is vertically centered

scrollable

determines if modal dialog content is scrollable

escape

determines if dialog can be closed with Esc key

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun Modal(    caption: String? = null,     closeButton: Boolean = true,     size: ModalSize? = null,     animation: Boolean = true,     centered: Boolean = false,     scrollable: Boolean = false,     escape: Boolean = true,     className: String? = null,     init: Modal.() -> Unit? = null)

Functions

Link copied to clipboard
open fun add(child: <Error class: unknown class>): Modal
open fun add(position: Int, child: <Error class: unknown class>): Modal
Link copied to clipboard
open fun addAll(children: List<<Error class: unknown class>>): Modal
Link copied to clipboard
open fun addButton(button: <Error class: unknown class>): Modal

Adds given button to the bottom section of dialog window.

Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun clearParent(): <Error class: unknown class>
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun disposeAll(): Modal
Link copied to clipboard
open fun getChildren(): List<<Error class: unknown class>>
Link copied to clipboard
open fun getRoot(): <Error class: unknown class>?
Link copied to clipboard
open fun hide(): <Error class: unknown class>
Link copied to clipboard
fun hideBootstrap()

Hide modal window with Bootstrap function.

Link copied to clipboard
open fun remove(child: <Error class: unknown class>): Modal
Link copied to clipboard
open fun removeAll(): Modal
Link copied to clipboard
open fun removeAllButtons(): Modal

Removes all buttons from the bottom section of dialog window.

Link copied to clipboard
open fun removeAt(position: Int): Modal
Link copied to clipboard
open fun removeButton(button: <Error class: unknown class>): Modal

Removes given button from the bottom section of dialog window.

Link copied to clipboard
fun showBootstrap()

Show modal window with Bootstrap function.

Link copied to clipboard
open fun toggle()

Toggle modal window visibility.

Properties

Link copied to clipboard
var animation: <Error class: unknown class>

Determines if animations are used.

Link copied to clipboard
var caption: <Error class: unknown class>

Window caption text.

Link copied to clipboard
var centered: <Error class: unknown class>

Determines if modal dialog is vertically centered.

Link copied to clipboard
var closeButton: <Error class: unknown class>

Determines if Close button is visible.

Link copied to clipboard
val footer: <Error class: unknown class>

The modal dialog footer component.

Link copied to clipboard
val header: <Error class: unknown class>

The modal dialog header component.

Link copied to clipboard
open var parent: <Error class: unknown class>?
Link copied to clipboard
var scrollable: <Error class: unknown class>

Determines if modal body is scrollable.

Link copied to clipboard
var size: <Error class: unknown class>

Window size.

Inheritors

Link copied to clipboard
Link copied to clipboard