バリデーション関数
- Source:
Members
(static) validationRule
バリデーションルールを設定する
- Source:
Methods
(static) checkData(value, targetRule, errorMessage, type, index)
データ(バリデーション)チェックを行う
Parameters:
Name | Type | Description |
---|---|---|
value |
object | チェック対象値 |
targetRule |
object | チェックルール |
errorMessage |
object | エラーメッセージ |
type |
string | チェック種類 |
index |
number | データのindex |
- Source:
Returns:
なし
(static) checkSize(value, targetRule, errorMessage, type, index)
サイズチェックを行う
Parameters:
Name | Type | Description |
---|---|---|
value |
object | チェック対象 |
targetRule |
object | ルール |
errorMessage |
string | エラーメッセージ |
type |
object | チェックの種類 |
index |
number | チェック対象のindex(未使用) |
- Source:
(static) getButtonMessage(target)
ボタン用のガイドメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
target |
object | チェック対象 |
- Source:
Returns:
ガイドメッセージ
(static) getCheckboxMessage(target)
チェックボックス用のガイドメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
target |
object | チェック対象 |
- Source:
Returns:
ガイドメッセージ
(static) getNonValidMessage(target)
テキストボックス用のガイドメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
target |
object | チェック対象 |
- Source:
Returns:
ガイドメッセージ
(static) getRadioMessage(target)
ラジオボックス用のガイドメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
target |
object | チェック対象 |
- Source:
Returns:
ガイドメッセージ
(static) getSelectMessage(target)
セレクトボックス用のガイドメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
target |
object | チェック対象 |
- Source:
Returns:
ガイドメッセージ
(static) getTargetMultline(targetRule)
バリデーションJsonから該当項目のmultiline情報を取得する
Parameters:
Name | Type | Description |
---|---|---|
targetRule |
object | 対象ルール |
- Source:
Returns:
multiline情報
(static) onBlurDataCheck(event, index)
onBlur データチェック処理
Parameters:
Name | Type | Description |
---|---|---|
event |
event | イベント情報 |
index |
number | データのindex |
- Source:
Returns:
チェック結果メッセージ
(static) onBlurDerive(target, value, index)
onBlurDerive 導出項目編集処理
Parameters:
Name | Type | Description |
---|---|---|
target |
object | 処理対象(要素) |
value |
object | 値 |
index |
number | データのindex |
- Source:
(static) onFocusMessage(event)
入力ガイドメッセージ作成処理
Parameters:
Name | Type | Description |
---|---|---|
event |
event | イベント情報 |
- Source:
Returns:
ガイドメッセージ
(static) setByteMessage(targetRule)
バイト数メッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
targetRule |
object | 対象ルール |
- Source:
Returns:
メッセージ
(static) setKetaMessage(targetRule)
桁数メッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
targetRule |
object | 対象ルール |
- Source:
Returns:
メッセージ
(static) setRequiredMessage(targetRule)
requiredメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
targetRule |
object | 対象ルール |
- Source:
Returns:
メッセージ
(static) setRuleMessage(targetRule)
ルールメッセージを作成する
Parameters:
Name | Type | Description |
---|---|---|
targetRule |
object | 対象ルール |
- Source:
Returns:
メッセージ
(static) transactionCheck(requestdata)
リクエストデータの一括チェック
Parameters:
Name | Type | Description |
---|---|---|
requestdata |
object | リクエストデータ |
- Source:
Returns:
チェック結果(true/false)
(static) validationCheck(target, value, index, type)
Validationチェック 処理
Parameters:
Name | Type | Description |
---|---|---|
target |
object | チェック対象(要素) |
value |
object | チェック対象(値) |
index |
number | チェック対象のindex |
type |
string | チェック種類 |
- Source:
Returns:
チェック結果