Modal

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

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

Modal
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

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

Adds given button to the bottom section of dialog window.

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

Hide modal window with Bootstrap function.

remove
Link copied to clipboard
open fun remove(child: <ERROR CLASS>): Modal
removeAll
Link copied to clipboard
open fun removeAll(): Modal
removeAllButtons
Link copied to clipboard
open fun removeAllButtons(): Modal

Removes all buttons from the bottom section of dialog window.

removeAt
Link copied to clipboard
open fun removeAt(position: Int): Modal
removeButton
Link copied to clipboard
open fun removeButton(button: <ERROR CLASS>): Modal

Removes given button from the bottom section of dialog window.

showBootstrap
Link copied to clipboard
fun showBootstrap()

Show modal window with Bootstrap function.

toggle
Link copied to clipboard
open fun toggle()

Toggle modal window visibility.

Properties

animation
Link copied to clipboard
var animation: <ERROR CLASS>

Determines if animations are used.

caption
Link copied to clipboard
var caption: <ERROR CLASS>

Window caption text.

centered
Link copied to clipboard
var centered: <ERROR CLASS>

Determines if modal dialog is vertically centered.

closeButton
Link copied to clipboard
var closeButton: <ERROR CLASS>

Determines if Close button is visible.

footer
Link copied to clipboard
val footer: <ERROR CLASS>

The modal dialog footer component.

header
Link copied to clipboard
val header: <ERROR CLASS>

The modal dialog header component.

parent
Link copied to clipboard
open var parent: <ERROR CLASS>?
scrollable
Link copied to clipboard
var scrollable: <ERROR CLASS>

Determines if modal body is scrollable.

size
Link copied to clipboard
var size: <ERROR CLASS>

Window size.

Inheritors

Alert
Link copied to clipboard
Confirm
Link copied to clipboard