Boost!for kintone
EVENTS

イベント一覧

フィールド値変更イベントの種類と、イベントハンドラーに渡されるeventオブジェクトのプロパティです。

01

フィールド値の変更イベント

対象プラグイン

Boost! Spread/Boost! Injector

イベントタイプ
bst.change.[フィールドコード]
eventオブジェクトのプロパティ
プロパティ名 型 説明
type 文字列

イベントタイプ

container DOM

テーブル外のフィールド:DIV要素

テーブル内のフィールド:フィールドが属するテーブルの行

<div class="bst-scope"></div>

Boost! Injectorのテーブル外のフィールド:MAIN要素

<main class="bst-scope"></main>
record オブジェクト

レコードオブジェクト

サンプル
(() => {
	"use strict";
	bst.event.on('bst.change.field_1_', (event) => {
		console.log(event);
		return event;
	});
})();
02

テーブル行の追加前イベント

対象プラグイン

Boost! Spread/Boost! Injector

イベントタイプ
bst.row.add.[テーブルのフィールドコード]
eventオブジェクトのプロパティ
プロパティ名 型 説明
type 文字列

イベントタイプ

container DOM

テーブル要素

<table class="bst-table"></table>
record オブジェクト

レコードオブジェクト

rowindex 数値

追加される行のインデックス

サンプル
(() => {
	"use strict";
	bst.event.on('bst.row.add.field_9_', (event) => {
		console.log(event);
		return event;
	});
})();

eventオブジェクトのerrorプロパティにtrueを入力して返すと、行の追加がキャンセルされます。

03

テーブル行の複製前イベント

対象プラグイン

Boost! Spread/Boost! Injector

イベントタイプ
bst.row.copy.[テーブルのフィールドコード]
eventオブジェクトのプロパティ
プロパティ名 型 説明
type 文字列

イベントタイプ

container DOM

テーブル要素

<table class="bst-table"></table>
record オブジェクト

レコードオブジェクト

rowindex 数値

追加される行のインデックス

サンプル
(() => {
	"use strict";
	bst.event.on('bst.row.copy.field_9_', (event) => {
		console.log(event);
		return event;
	});
})();

eventオブジェクトのerrorプロパティにtrueを入力して返すと、行の複製がキャンセルされます。

04

テーブル行の削除前イベント

対象プラグイン

Boost! Spread/Boost! Injector

イベントタイプ
bst.row.del.[テーブルのフィールドコード]
eventオブジェクトのプロパティ
プロパティ名 型 説明
type 文字列

イベントタイプ

container DOM

テーブル要素

<table class="bst-table"></table>
record オブジェクト

レコードオブジェクト

rowindex 数値

削除される行のインデックス

サンプル
(() => {
	"use strict";
	bst.event.on('bst.row.del.field_9_', (event) => {
		console.log(event);
		return event;
	});
})();

eventオブジェクトのerrorプロパティにtrueを入力して返すと、行の削除がキャンセルされます。