← TssGrid/例一覧

TssGrid 例: 時刻ピッカー

業務の時刻入力向けの時/分プルダウンピッカー(plugins/tss-time.js)。クロックフェイスのようなリッチさは省き、任意時刻を素早く選べます。保存値は常に 24h "HH:MM"(組込 type:'time' と互換)。
「出勤」列=15分刻み、「退勤」列=1分刻み・AM/PM 表示。セル右端 🕐 をクリックで開閉現在/決定ボタン、キーボード(Enter 決定 / Esc 取消)も可。フィルで下へコピーも。

デモ

差し込み(抜粋)

const t15 = TssTime({ step: 15 });               // 15分刻み(24h)
const t1  = TssTime({ step: 1, hour12: true });  // 1分刻み・AM/PM 表示

new TssGrid(host, {
  columns: [ {}, { type:'time', editor: t15 }, { type:'time', editor: t1 }, /* … */ ],
  data: rows,
});