Combo Button
Combo Button
Un Combo Button se divise en une action principale et un petit menu à côté. Le menu liste des variantes proches de la même action.
Un vrai exemple
Cliquer sur Exécuter lance la compilation par défaut. La flèche révèle Exécuter sans débogage et Choisir la cible.
Parties principales
- 01Étiquette visible
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Utilisez-le lorsque
Utilisez-le lorsqu'une action sûre et courante est clairement le choix principal. Un menu court peut offrir des versions proches de cette action.
Ne l'utilisez pas lorsque
Évitez-le lorsque tous les choix sont également importants ou lorsque l'action principale est destructive. Le menu ne doit pas modifier secrètement ce que fait la moitié principale.
Nom utilisé dans le code
AppKit NSComboButton / SwiftUI Menu with primaryAction Avant d'expédier
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 Combo Button (Combo Button). User context: Cliquer sur Exécuter lance la compilation par défaut. La flèche révèle Exécuter sans débogage et Choisir la cible. macOS concept or control: Combo Button (Combo Button). Why it fits: Utilisez-le lorsqu'une action sûre et courante est clairement le choix principal. Un menu court peut offrir des versions proches de cette action. Do not use it when: Évitez-le lorsque tous les choix sont également importants ou lorsque l'action principale est destructive. Le menu ne doit pas modifier secrètement ce que fait la moitié principale. 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): C'est officiel pour cette source. D'autres plateformes ou équipes peuvent utiliser le terme d'une autre manière. 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.
Vérifiez cette demande
Review how Combo Button (Combo Button) is used now. Definition: Un Combo Button se divise en une action principale et un petit menu à côté. Le menu liste des variantes proches de la même action. 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.