Confirm

open class Confirm(caption: String?, text: String?, rich: Boolean, align: <ERROR CLASS>?, size: ModalSize?, animation: Boolean, centered: Boolean, cancelVisible: Boolean, yesTitle: String, noTitle: String, cancelTitle: String, noCallback: () -> Unit?, yesCallback: () -> Unit?) : Modal

Confirm 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

cancelVisible

determines if Cancel button is visible

yesTitle

yes button text

noTitle

no button text

cancelTitle

cancel button text

noCallback

a function called after closing window with No button

yesCallback

a function called after closing window with Yes button

Constructors

Confirm
Link copied to clipboard
fun Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: <ERROR CLASS>? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit? = null, yesCallback: () -> 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 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.

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

Cancel button text.

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

Determines if Cancel button is visible.

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.

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

No button text.

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.

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

Yes button text.