script(id="switch", type="text/html")
  select(data-bind="options: ['0','1'], value: value, attr: { placeholder: description, title: description }, jqSwitch: { value: value }")
script(id="input", type="text/html")
  input.span5(type='text', data-bind="attr: { placeholder: description, title: description}, value: value, valueUpdate: 'afterkeydown' ")
script(id="spinner", type="text/html")
  input.span5(type='text', data-bind="spinner: {value: value }, attr: { placeholder: description, title: description}, valueUpdate: 'afterkeydown' ")

script(id="list", type="text/html")
  form(data-bind="listWidget: value")
    input(type="text", data-bind='value:itemToAdd, valueUpdate: "afterkeydown"')
    button(type="submit", data-bind="enable: itemToAdd().length > 0")='Add'
  select(multiple="multiple", height="5", data-bind="options:value, selectedOptions:selectedItems")
  div
   button(data-bind="click: removeSelected, enable: selectedItems().length > 0")="Remove"

script(id="switch", type="text/html")
  select(data-bind="options: $data.enum, value: value, attr: { placeholder: description, title: description }, jqSwitch: { value: value }")
script(id="input", type="text/html")
  input.span5(type='text', data-bind="attr: { placeholder: description, title: description}, value: value, valueUpdate: 'afterkeydown' ")
script(id="spinner", type="text/html")
  input.span5(type='text', data-bind="spinner: {value: value }, attr: { placeholder: description, title: description}, valueUpdate: 'afterkeydown' ")

script(id="list", type="text/html")
  form(data-bind="listWidget: value")
    input(type="text", data-bind='value:itemToAdd, valueUpdate: "afterkeydown"')
    button(type="submit", data-bind="enable: itemToAdd().length > 0")='Add'
  select(multiple="multiple", height="5", data-bind="options:value, selectedOptions:selectedItems")
  div
   button(data-bind="click: removeSelected, enable: selectedItems().length > 0")="Remove"

Switch widget: Support for custom values from config
Switch widget: Support for custom values from config

Signed-off-by: José Luis Di Biase <4c7b95f5adfd626fd0932dd055f5ab0e5f8eb624@interorganic.com.ar>
