Token Field
Token Field
トークンフィールドは、入力された値を1つずつのアイテムにし、それぞれを削除できるようにします。そのまま打ち続けて、さらに追加することもできます。
実際の例
メールフィールドは有効なアドレスをトークンに変換します。送信前に無効なアドレスをマークします。
主な部分
- 01永続ラベル
- 02Input control
- 03Hint or format
- 04Validation message
以下の場合に使用します
アプリが検索、確認、入力、選択、順番に削除できる複数の構造化された値に使用します。
以下の場合は使用しないでください
自由な記述や単一値をトークンに変えないでください。各項目には明確なラベルとエラーメッセージのための余白が必要です。
コードで使用する名前
AppKit NSTokenField 出荷前に
Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion.
Outcome:Complete the task with Token Field (Token Field)。 User context:メールフィールドは有効なアドレスをトークンに変換します。送信前に無効なアドレスをマークします。 macOS concept or control:Token Field (Token Field)。 Why it fits:アプリが検索、確認、入力、選択、順番に削除できる複数の構造化された値に使用します。 Do not use it when:自由な記述や単一値をトークンに変えないでください。各項目には明確なラベルとエラーメッセージのための余白が必要です。 Platform requirements: List the supported macOS versions. Say whether AppKit or SwiftUI owns each part and how they connect. Define window, menu, focus, keyboard, saved state, restore, and multi-window behavior. Platform accessibility and resilience: Use the right accessibility APIs. Check VoiceOver and Full Keyboard Access. Support localization, contrast, and reduced motion when needed. Keep user state after a relaunch. Acceptance criteria: Check the behavior on supported macOS versions with a keyboard and VoiceOver. Window resizing, focus, state restore, and AppKit or SwiftUI integration work in the normal macOS way. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Supported macOS versions, AppKit or SwiftUI structure, and window model. Also confirm sandbox and entitlement limits, save rules, and the accessibility goal.
このリクエストを確認する
Review how Token Field (Token Field) is used now. Definition: トークンフィールドは、入力された値を1つずつのアイテムにし、それぞれを削除できるようにします。そのまま打ち続けて、さらに追加することもできます。 Release checks: Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.