it技術:web開発:handsontable
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
it技術:web開発:handsontable [2021/08/15 21:38] – yajuadmin | it技術:web開発:handsontable [2021/09/18 02:05] (現在) – [カスタムエディター] yajuadmin | ||
---|---|---|---|
行 131: | 行 131: | ||
if (source === ' | if (source === ' | ||
- | for (var i = 0; i < changes.length; | + | for (let i = 0; i < changes.length; |
let change = changes[i]; | let change = changes[i]; | ||
// 編集と選択は対象外 | // 編集と選択は対象外 | ||
行 168: | 行 168: | ||
'use strict'; | 'use strict'; | ||
- | var MaxLengthEditor = Handsontable.editors.TextEditor.prototype.extend(); | + | let MaxLengthEditor = Handsontable.editors.TextEditor.prototype.extend(); |
MaxLengthEditor.prototype.prepare = function () { | MaxLengthEditor.prototype.prepare = function () { | ||
行 182: | 行 182: | ||
// 使い方 | // 使い方 | ||
- | var table = new Handsontable(grid, | + | let table = new Handsontable(grid, |
data: data, | data: data, | ||
columns: [ | columns: [ | ||
行 217: | 行 217: | ||
const dtFormat = ' | const dtFormat = ' | ||
| | ||
- | var isFuture = function (value, callback) { | + | let isFuture = function (value, callback) { |
if (moment(value, | if (moment(value, | ||
callback(false); | callback(false); | ||
行 894: | 行 894: | ||
=== 変更後イメージ === | === 変更後イメージ === | ||
{{: | {{: | ||
+ | |||
+ | ===== EditorManager ===== | ||
+ | EditorManagerを使用してカスタムエディターを作成することが出来る。 | ||
+ | ==== Tips ==== | ||
+ | * open時直後に、event.stopPropagation(); | ||
+ | |||
+ | ==== 参照 ==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |
it技術/web開発/handsontable.1629031134.txt.gz · 最終更新: 2021/08/15 21:38 by yajuadmin