Created
October 31, 2021 02:38
-
-
Save kwbtdisk/155268d095dcdcd6f1a54acbe91bc716 to your computer and use it in GitHub Desktop.
CORE Framework 他のカラムの入力値に応じて、カラムの表示/非表示を切り替える (`enableIf: (row) => boolean` 関数を利用する)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Model定義 のカラムの "JS形式の追加カラム定義" へ追記 | |
{ | |
enableIf: (row) => { | |
// 経費申請Modelで "金額が5000円以上のときにのみ" imageカラムを表示させる | |
// console.log(row) | |
// debugger | |
return row.amount >= 5000 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment