forked from Botanical/BotanJS
Checkbox should wrapped with labels
This commit is contained in:
@@ -26,16 +26,15 @@
|
||||
, handler = function ()
|
||||
{
|
||||
// Input fields
|
||||
var input_w = Dand.wrapna('input', new IKey("type", "number"))
|
||||
, input_h = Dand.wrapna('input', new IKey("type", "number"))
|
||||
, input_title = Dand.wrap('input', null, "v_snippet_input_single", null, [new IKey("type", "text"), new IKey("placeHolder", "optional")] )
|
||||
, input_desc = Dand.wrap('input', null, "v_snippet_input_single", null, [new IKey("type", "text"), new IKey("placeHolder", "optional")] )
|
||||
, input_api = Dand.wrapna('input', new IKey("type", "checkbox"))
|
||||
, input_preview = Dand.wrap('input', null, "v_snippet_input_single", null, [new IKey("type", "text"), new IKey("placeHolder", "optional")] )
|
||||
, input_src = Dand.wrap('input', null, "v_snippet_input_single", null, new IKey("type", "text"))
|
||||
var input_w = Dand.wrapna("input", new IKey("type", "number"))
|
||||
, input_h = Dand.wrapna("input", new IKey("type", "number"))
|
||||
, input_title = Dand.wrap("input", null, "v_snippet_input_single", null, [new IKey("type", "text"), new IKey("placeHolder", "optional")] )
|
||||
, input_desc = Dand.wrap("input", null, "v_snippet_input_single", null, [new IKey("type", "text"), new IKey("placeHolder", "optional")] )
|
||||
, input_api = Dand.wrapna("input", new IKey("type", "checkbox"))
|
||||
, input_preview = Dand.wrap("input", null, "v_snippet_input_single", null, [new IKey("type", "text"), new IKey("placeHolder", "optional")] )
|
||||
, input_src = Dand.wrap("input", null, "v_snippet_input_single", null, new IKey("type", "text"))
|
||||
, stage = this._stage;
|
||||
|
||||
|
||||
|
||||
if (stage)
|
||||
{
|
||||
input_src.value = this._src;
|
||||
@@ -64,7 +63,7 @@
|
||||
, Dand.wrapc("v_instruction flsf", "Link to swf:")
|
||||
, input_src
|
||||
|
||||
, Dand.wrape([ input_api, Dand.textNode("Use external API") ] )
|
||||
, Dand.wrape( Dand.wrapne( "label", [ input_api, "Use external API" ] ) )
|
||||
]
|
||||
)
|
||||
, "OK", "Cancel", visualizer.bind({src:input_src, width:input_w, height:input_h, title: input_title, desc: input_desc, extAPI: input_api, preview: input_preview, stage: this._stage})).show();
|
||||
@@ -103,14 +102,14 @@
|
||||
{
|
||||
// Visualize component
|
||||
|
||||
temp = Dand.wrapc('v_box'
|
||||
, Dand.wrapc('v_description'
|
||||
temp = Dand.wrapc("v_box"
|
||||
, Dand.wrapc("v_description"
|
||||
, [
|
||||
Dand.wrap('span', null, 'fls', title)
|
||||
Dand.wrap("span", null, "fls", title)
|
||||
, Dand.textNode(" ")
|
||||
, Dand.wrap('span', null, 'v_caption_desc flsf', desc)
|
||||
, Dand.wrap("span", null, "v_caption_desc flsf", desc)
|
||||
]
|
||||
, new IKey('style', 'font-size: 2em')
|
||||
, new IKey("style", "font-size: 2em")
|
||||
)
|
||||
, [
|
||||
new DataKey("value", src)
|
||||
@@ -120,7 +119,7 @@
|
||||
, new DataKey("desc", desc)
|
||||
, new DataKey("preview", preview)
|
||||
, new DataKey("useExtAPI", extAPI)
|
||||
|
||||
|
||||
, new IKey
|
||||
(
|
||||
"style"
|
||||
|
Reference in New Issue
Block a user