Craft Group select
Go to file
2022-10-17 19:49:06 +03:00
src Added description in methods 2022-10-17 19:49:06 +03:00
.gitignore Feat/add dropdown list via js (#1) 2022-09-21 11:54:22 +03:00
.prettierrc [main] Added dropdown-list! 2022-09-12 19:14:08 +03:00
package-lock.json Feat/add dropdown list via js (#1) 2022-09-21 11:54:22 +03:00
package.json Feat/add dropdown list via js (#1) 2022-09-21 11:54:22 +03:00
README.md Update README.md 2022-10-13 14:11:52 +03:00

CG-SELECT


This component allows you to create a generic select.

Creating a Component:

  • Сreate an element with class cg-dropdown and give it a unique selector.
<button class="cg-dropdown cg-dropdown_one"></button>
  • Create a class element.
const dropdown = new DropDown()
  • Next, pass the desired settings

Settings

options = {
    - selector: Here we pass our unique selector.  Obligatory item!!!
    - placeholder: string
    - selected: string
    - items = []
    - url: string
    - event: string
    - styles: {}
    - multiselect: boolean
    - multiselectTag: boolean
}