os-js / osjs-gui

OS.js GUI Module
https://manual.os-js.org/v3/
Other
18 stars 10 forks source link

Select2 component in gui #35

Closed miladhashemi closed 3 years ago

miladhashemi commented 3 years ago

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

andersevenrud commented 3 years ago

No.

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

andersevenrud commented 3 years ago

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>
miladhashemi commented 3 years ago

Thank U.