Open1

Tabulatorメモ

ねずみねずみ

Tabulatorの表の中にinput(入力欄)やプルダウンをいれる

ドキュメント:https://tabulator.info/docs/6.2/edit#edit-builtin

columnsの中にeditorで指定

▼例:入力欄

{
    title: '入力欄サンプル',
    field: 'inputsample'
    editor: 'input'
}

▼例:プルダウン

{
    title: 'プルダウンサンプル',
    field: 'listsample'
    editor: 'list',
    editorParams: {
        values: ['選択項目1', '選択項目2', '選択項目3']
    }
}

プルダウンを複数選択にする場合は

editorParams: {
    values: ['選択項目1', '選択項目2', '選択項目3'],
    multiselect: true
}

multiselect: trueを追加

editorで指定できるもの

ドキュメント:https://tabulator.info/docs/6.2/edit

  • Input
  • Textarea
  • Number
  • Range
  • Checkbox
  • Star
  • Progress Bar
  • Date
  • Time
  • Date Time
  • List (Select/Autocomplete)