os-js / osjs-gui

OS.js GUI Module

Home Page:https://manual.os-js.org/v3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select2 component in gui

miladhashemi opened this issue · comments

Is there component similar to useful select2 (https://select2.org/) that be implemented in osjs-gu with hyperappi?

No.

You can use select2 if you want though, even in Hyperapp.

Btw, just an example of how to do this:

function createSelect2(rootElement) {
  // Use the root element
}
h('div', {
  oncreate: el => createSelect2(el)
})

or if you're using JSX:

<div oncreate={el => createSelect2(el)}></div>