talio-selectize

0.0.3 • Public • Published

Selectize Widget for being used in the context of a virtual-dom and dom-delegator based framework, such as mercury or talio.

This requires Selectize to be already loaded in the page in the old way (as a global), so you can probably include this CSS file and this JS file and everything will be ok.

It also needs jQuery, which is a dependency of Selectize, and also expects it to be a global.

If you don't like adding <script> tags everywhere, then you can initialize this with

window.$ = require('jquery')
window.selectize = require('selectize')
 
SelectizeWidget = require('talio-selectize')
SelectizeWidget.init(talio.delegator)
 
vtree = h('div', {},
  SelectizeWidget({
    name: '',
    value: '',
    options: [{bli: '', 'plo': ''}],
    valueField: 'plo',
    nameField: 'bli',
    'ev-change': 'normal event handler'
  })
)

Package Sidebar

Install

npm i talio-selectize

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • fiatjaf