kvision / pl.treksoft.kvision.onsenui.dialog

Package pl.treksoft.kvision.onsenui.dialog

Onsen UI dialogs, toasts, popovers and notifications.

Types

(js)

ActionSheet

An action sheet component.

open class ActionSheet : SimplePanel
(js)

ActionSheetButton

An action sheet button component.

open class ActionSheetButton : CustomTag
(js)

AlertDialog

An alert dialog component.

open class AlertDialog : Dialog
(js)

AlertDialogButton

An alert dialog button component.

open class AlertDialogButton : CustomTag
(js)

Dialog

A dialog component.

open class Dialog : SimplePanel
(js)

Modal

A modal component.

open class Modal : SimplePanel
(js)

ModalAnimation

enum class ModalAnimation
(js)

Popover

A popover component.

open class Popover : SimplePanel
(js)

Toast

A toast component.

open class Toast : SimplePanel
(js)

ToastAnimation

enum class ToastAnimation

Functions

(js)

actionSheet

DSL builder extension function.

fun Container.actionSheet(actionSheetTitle: String? = null, cancelable: Boolean? = null, animation: Boolean? = null, classes: Set<String>? = null, className: String? = null, init: (ActionSheet.() -> Unit)? = null): ActionSheet
(js)

actionSheetButton

DSL builder extension function.

fun ActionSheet.actionSheetButton(content: String? = null, rich: Boolean = false, align: Align? = null, icon: String? = null, classes: Set<String>? = null, className: String? = null, init: (ActionSheetButton.() -> Unit)? = null): ActionSheetButton
(js)

alertDialog

DSL builder extension function.

fun Container.alertDialog(dialogTitle: String? = null, cancelable: Boolean? = null, animation: Boolean? = null, rowfooter: Boolean? = null, classes: Set<String>? = null, className: String? = null, init: (AlertDialog.() -> Unit)? = null): AlertDialog
(js)

alertDialogButton

DSL builder extension function.

fun AlertDialog.alertDialogButton(content: String? = null, rich: Boolean = false, align: Align? = null, icon: String? = null, classes: Set<String>? = null, className: String? = null, init: (AlertDialogButton.() -> Unit)? = null): AlertDialogButton
(js)

dialog

DSL builder extension function.

fun Container.dialog(cancelable: Boolean? = null, animation: Boolean? = null, classes: Set<String>? = null, className: String? = null, init: (Dialog.() -> Unit)? = null): Dialog
(js)

modal

DSL builder extension function.

fun Container.modal(animation: ModalAnimation? = null, classes: Set<String>? = null, className: String? = null, init: (Modal.() -> Unit)? = null): Modal
(js)

popover

DSL builder extension function.

fun Container.popover(direction: FloatDirection? = null, cancelable: Boolean? = null, animation: Boolean? = null, classes: Set<String>? = null, className: String? = null, init: (Popover.() -> Unit)? = null): Popover
(js)

showActionSheet

Displays a dynamic action sheet.

fun showActionSheet(title: String? = null, cancelable: Boolean? = null, animation: Boolean? = null, buttons: List<dynamic>? = null): Promise<Int>
(js)

showAlert

Displays alert notification.

fun showAlert(message: String, title: String? = null, buttonLabels: List<String>? = null, primaryButtonIndex: Int? = null, cancelable: Boolean = false, animation: Boolean = true, id: String? = null, className: String? = null, modifier: String? = null, maskColor: String? = null, callback: (() -> Unit)? = null): Promise<Int>
(js)

showConfirm

Displays confirm notification.

fun showConfirm(message: String, title: String? = null, buttonLabels: List<String>? = null, primaryButtonIndex: Int? = null, cancelable: Boolean = false, animation: Boolean = true, id: String? = null, className: String? = null, modifier: String? = null, maskColor: String? = null, callback: (() -> Unit)? = null): Promise<Int>
(js)

showPrompt

Displays prompt notification.

fun showPrompt(message: String, title: String? = null, defaultValue: String? = null, placeholder: String? = null, inputType: String? = null, buttonLabels: List<String>? = null, primaryButtonIndex: Int? = null, autofocus: Boolean = true, submitOnEnter: Boolean = true, cancelable: Boolean = false, animation: Boolean = true, id: String? = null, className: String? = null, modifier: String? = null, maskColor: String? = null, callback: (() -> Unit)? = null): Promise<String?>
(js)

showToast

Displays toast notification.

fun showToast(message: String, buttonLabel: String? = null, animation: ToastAnimation? = null, timeout: Int? = 2000, force: Boolean = false, id: String? = null, className: String? = null, modifier: String? = null, callback: (() -> Unit)? = null): Promise<Int>
(js)

toast

DSL builder extension function.

fun Container.toast(animation: ToastAnimation? = null, classes: Set<String>? = null, className: String? = null, init: (Toast.() -> Unit)? = null): Toast