coffeescript-ui
Version:
Coffeescript User Interface System
51 lines (37 loc) • 906 B
text/coffeescript
class CUI.Form extends CUI.SimpleForm
constructor: (opts) ->
super(opts)
if
return
initOpts: ->
super()
top: {}
bottom: {}
padded:
check: Boolean
default: false
initTemplate: ->
initLayout: ->
vl_opts = class: "cui-form cui-form-appearance-"+
for k in [
"maximize"
"maximize_horizontal"
"maximize_vertical"
]
if
vl_opts[k] =
if
vl_opts.top = content:
if
vl_opts.bottom = content:
= new CUI.VerticalLayout(vl_opts)
if
.addClass("cui-form--grid")
getLayout: ->
appendToContainer: (stuff) ->
.append(stuff, "center")