How to use @toast-ui/select-box - 1 common examples

To help you get started, we’ve selected a few @toast-ui/select-box examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nhn / toast-ui.select-box / test / types / type-tests.ts View on Github external
import SelectBox, { Item, ItemGroup, IEventObjects } from '@toast-ui/select-box';

const container =
  document.querySelector('#container') ||
  document.getElementById('container') ||
  document.createElement('div') ||
  '#container';

const selectBox = new SelectBox(container, {
  data: [
    {
      label: 'Fruits',
      data: [
        { label: 'Apple', value: 'apple', selected: true },
        { label: 'Banana', value: 'banana' }
      ]
    },
    { label: 'The quick brown fox jumps over the lazy dog.', value: 'none' },
    {
      label: 'Colors',
      data: [
        { label: 'Red', value: 'red' },
        { label: 'Yellow', value: 'yellow' },
        { label: 'Green', value: 'green', disabled: true },
        { label: 'Blue', value: 'blue', disabled: true },

@toast-ui/select-box

TOAST UI Components: SelectBox

MIT
Latest version published 4 years ago

Package Health Score

52 / 100
Full package analysis

Popular @toast-ui/select-box functions