How to use the tui-date-picker function in tui-date-picker

To help you get started, we’ve selected a few tui-date-picker 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 / tui.grid / packages / toast-ui.grid / src / editor / datePicker.ts View on Github external
if (isNumber(value) || isString(value)) {
      date = new Date(value);
    }

    const defaultOptions = {
      date,
      type: 'date',
      input: {
        element: this.inputEl,
        format: options.format
      },
      usageStatistics
    };

    this.datePickerEl = new TuiDatePicker(calendarWrapper, deepMergedCopy(defaultOptions, options));
    this.datePickerEl.on('close', () => {
      this.focus();
    });
  }
github nhn / tui.grid / packages / toast-ui.grid / src / view / datePickerFilter.tsx View on Github external
if (isString(value) && value.length) {
      date = new Date(value);
    }

    const defaultOptions = {
      date,
      type: 'date',
      input: {
        element: this.inputEl,
        format: options.format
      },
      usageStatistics
    };

    this.datePickerEl = new TuiDatePicker(
      this.calendarWrapper!,
      deepMergedCopy(defaultOptions, options || {})
    );

    this.datePickerEl.on('change', this.handleChange);
  };

tui-date-picker

TOAST UI Components: DatePicker

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular tui-date-picker functions