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

Inheritors

Constructors

Link copied to clipboard
constructor(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)

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.

Functions

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

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()
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun disposeAll()
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()
Link copied to clipboard

Hide modal window with Bootstrap function.

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

Removes all buttons from the bottom section of dialog window.

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

Removes given button from the bottom section of dialog window.

Link copied to clipboard

Show modal window with Bootstrap function.

Link copied to clipboard
open fun toggle()

Toggle modal window visibility.