メインコンテンツまでスキップ

keep のコンテキスト

module

現在コンテンツに紐づくモジュール IDです。(例: item, review

sheet_id

現在コンテンツに紐づくシートのシステム ID です。

get_keep_path

keep 操作用 URL を返します。

シグネチャ:

get_keep_path( action: string ): string

action には以下を指定します。

  • fixed_add
  • fixed_del
  • update
  • toggle

is_kept

対象レコードが keep 済みか判定します。

シグネチャ:

is_kept( sheet_id: string, record_id: mixed ): bool

利用例:

{{ is_kept('keep_sheet_id', record.id) ? '登録済み' : '未登録' }}