forked from Botanical/BotanJS
Checkbox should wrapped with labels
This commit is contained in:
@@ -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)
|
||||
],
|
||||
[
|
||||
|
Reference in New Issue
Block a user