Token Field
Token Field
Um Token Field transforma cada valor conhecido em um item separado que pode ser tirado. As pessoas podem continuar digitando para adicionar mais valores.
Um exemplo real
Um campo de e-mail transforma cada endereço válido em uma etiqueta. Ele marca um endereço inválido antes de enviar.
Partes principais
- 01Rótulo persistente
- 02Input control
- 03Hint or format
- 04Validation message
Use-o quando
Use-o para vários valores estruturados que o aplicativo pode encontrar, verificar, preencher, selecionar e remover um por um.
Não o use quando
Não transforme escrita livre ou um único valor em tokens. Cada item precisa de um rótulo claro e espaço para qualquer mensagem de erro.
Nome usado no código
AppKit NSTokenField Antes de lançar
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: Um campo de e-mail transforma cada endereço válido em uma etiqueta. Ele marca um endereço inválido antes de enviar. macOS concept or control: Token Field (Token Field). Why it fits: Use-o para vários valores estruturados que o aplicativo pode encontrar, verificar, preencher, selecionar e remover um por um. Do not use it when: Não transforme escrita livre ou um único valor em tokens. Cada item precisa de um rótulo claro e espaço para qualquer mensagem de erro. 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): É oficial para essa fonte. Outras plataformas ou equipes podem usar o termo de outra maneira. 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.
Conferir este pedido
Review how Token Field (Token Field) is used now. Definition: Um Token Field transforma cada valor conhecido em um item separado que pode ser tirado. As pessoas podem continuar digitando para adicionar mais valores. 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.