Add datetime components 196-215; Kit.At; inert stepper arrows
Calendars, date and time inputs, pickers, clocks, timers, a sun dial, a season wheel, an agenda and a day schedule. Kit.At rebuilds at a moment (relative times, midnight). Stepper and NumberInput arrows stop under Inert. DateInput parks a popup focus as its own.
This commit is contained in:
38 files changed
+2651
-5
No files matched your search
@@ -55,6 +55,13 @@ func (k Kit) Tick(c *ui.Context, fps int) int {
|
||||
return n
|
||||
}
|
||||
|
||||
// At builds the view again at t.
|
||||
func (k Kit) At(c *ui.Context, t time.Time) {
|
||||
d := max(0, t.Sub(k.now))
|
||||
c.After(d)
|
||||
ask(c.Now().Add(d).UnixNano())
|
||||
}
|
||||
|
||||
// Since counts steps from t at fps, up to done.
|
||||
func (k Kit) Since(c *ui.Context, t time.Time, fps, done int) int {
|
||||
if t.IsZero() {
|
||||
|
||||
Reference in new issue
Block a user