Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ const pinBox, pinGap = 12, 4
|
||||
// PinInput types digits into boxes; Backspace goes back, paste fills.
|
||||
func PinInput(c *ui.Context, text string, value *string, o PinInputOptions) PinInputResult {
|
||||
k := pixel.K(c)
|
||||
n := orDef("PinInput Length", o.Length, 4)
|
||||
n := pixel.Or("PinInput Length", o.Length, 4)
|
||||
shell, base, st := pixel.Shell(c, func() *ui.Element {
|
||||
return ui.Box(c).Focusable().Role(ui.RoleTextField).Label(text).Description(*value).Disabled(o.Disabled)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user