Checkbox should wrapped with labels

This commit is contained in:
2016-02-22 07:53:59 +08:00
parent e2cda7ca2c
commit 7be076461a
9 changed files with 133 additions and 104 deletions

View File

@@ -22,9 +22,9 @@
, handler = function ()
{
// Input fields
var v_snippetInput = Dand.wrap('textarea', null, "v_snippet_input")
, input_title = Dand.wrap('input', null, "v_snippet_input_single", null, new IKey("type", "text"))
, input_expanded = Dand.wrapna('input', new IKey("type", "checkbox"))
var v_snippetInput = Dand.wrap("textarea", null, "v_snippet_input")
, input_title = Dand.wrap("input", null, "v_snippet_input_single", null, new IKey("type", "text"))
, input_expanded = Dand.wrapna("input", new IKey("type", "checkbox"))
if (this._stage)
{
@@ -42,7 +42,7 @@
, Dand.wrapc("v_instruction flsf", "Content")
, v_snippetInput
, Dand.wrape([ input_expanded, Dand.textNode( "Expanded" ) ])
, Dand.wrape( Dand.wrapne( "label", [ input_expanded, "Expanded" ] ) )
]
)
, "OK", "Cancel", visualizer.bind({title: input_title, content:v_snippetInput, expanded: input_expanded, stage: this._stage})).show();
@@ -75,10 +75,10 @@
if (!content) return;
// Visualize component
temp = Dand.wrapc('v_box',
temp = Dand.wrapc("v_box",
[
// caption
Dand.wrapc('v_caption', i)
Dand.wrapc("v_caption", i)
, Dand.textNode(content)
],
[