Alert

open class Alert(caption: String?, text: String?, rich: Boolean, align: <ERROR CLASS>?, size: ModalSize?, animation: Boolean, centered: Boolean, callback: () -> Unit?) : Modal

Alert window based on Bootstrap modal.

Parameters

caption

window title

text

window content text.

rich

determines if text can contain HTML code

align

text align

size

modal window size

animation

determines if animations are used

centered

determines if modal dialog is vertically centered

callback

a function called after closing window with OK button

Constructors

Alert
Link copied to clipboard
fun Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: <ERROR CLASS>? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, callback: () -> Unit? = null)

Types

Companion
Link copied to clipboard
object Companion

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 override 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

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

Text align.

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>?
rich
Link copied to clipboard
var rich: <ERROR CLASS>

Determines if text can contain HTML code.

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.

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

Window content text.