coffeescript-ui
Version:
Coffeescript User Interface System
37 lines (30 loc) • 872 B
text/coffeescript
###
* coffeescript-ui - Coffeescript User Interface System (CUI)
* Copyright (c) 2013 - 2016 Programmfabrik GmbH
* MIT Licence
* https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org
###
class CUI.Alert extends CUI.ConfirmationChoice
initOpts: ->
super()
#
#
button_text_ok:
mandatory: true
default: CUI.defaults.class.ConfirmationChoice.defaults.ok
check: String
isKeyboardCancellable: (ev) ->
true
readOpts: ->
super()
if not
= [
text:
]
CUI.alert = (opts=text: "CUI.alert") ->
new CUI.Alert(opts).open()
class CUI.AlertProblem extends CUI.Alert
CUI.problem = (opts=text: "CUI.problem") ->
new CUI.AlertProblem(opts).open()