debug_table_1

ショートコード デバッグ用サンプル集

1. 基本 (ヘッダーなし、フォーマット指定なし)

, ["B1", "B2"]]’ ]

2. ヘッダーあり + 行フォーマット

’ body='[["項目1", "100"], ["項目2", "200"], ["項目3", "300"]]’ format='{ "rows": [ {"index": 1, "style": "highlight"}, {"index": 2, "style": "important"} ] }’ ]

3. ヘッダーあり + 列フォーマット

’ body='[["001", "テストA", "完了"], ["002", "テストB", "処理中"]]’ format='{ "columns": [ {"index": 0, "style": "text-left"}, {"index": 1, "style": "text-center"}, {"index": 2, "style": "highlight"} ] }’ ]

4. ヘッダーあり + 行・列 混合フォーマット

’ body='[["製品X", "¥5,000", "あり"], ["製品Y", "¥12,000", "なし"], ["製品Z", "¥800", "あり"]]’ format='{ "rows": [ {"index": 0, "style": "highlight"} ], "columns": [ {"index": 1, "style": "text-right"}, {"index": 2, "style": "stock-status"} ] }’ ]

5. ヘッダーなし + 行・列 混合フォーマット

, ["B1", "B2", "B3"], ["C1", "C2", "C3"]]’ format='{ "rows": [ {"index": 1, "style": "row-b"} ], "columns": [ {"index": 2, "style": "col-3-special"} ] }’ ]

6. フォーマット属性のみ (ヘッダー・ボディなし – エラーケース想定)

}’ ]

7. body属性のみ (最もシンプル)

, ["シンプル2"]]’ ]

タイトルとURLをコピーしました