Refactor: EditableTextView.Changed() and the Canceled spelling

EditableTextView.Changed is a method like every other result's.
AlertDialogResult, PopconfirmResult and DateTimeResult spell Canceled
the American way, matching EditableTextView and LoadingOverlayResult.
Callers, Gallery and docs updated.
This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 13:50:02 -04:00
1 parent 5d395ad789
commit c0be05d043
22 files changed
+306 -72

No files matched your search

+4 -4
View File
@@ -163,8 +163,8 @@ func dtDateRangeDemo(c *ui.Context, log func(string)) {
if r.Changed() {
log(fmt.Sprintf("DateRangePicker changed: %v – %v (%d days)", s.a.Start, s.a.End, s.a.Days()))
}
if r.Cancelled() {
log("DateRangePicker cancelled")
if r.Canceled() {
log("DateRangePicker canceled")
}
})
}
@@ -264,8 +264,8 @@ func dtDateTimeDemo(c *ui.Context, log func(string)) {
if r.Changed() {
log("DateTimePicker changed: " + s.v.Format(time.RFC3339))
}
if r.Cancelled() {
log("DateTimePicker cancelled")
if r.Canceled() {
log("DateTimePicker canceled")
}
k := mujica.Tokens(c)
ui.Text(c, "Try 2026-03-08 02:30 in America/New_York: the picker reports the DST gap.").