Repository navigation
Let a slider format its readout - #150
Merged
Merged
Conversation
ryankiley
enabled auto-merge (squash)
October 12, 2026 00:19
ryankiley
disabled auto-merge
October 12, 2026 00:19
ryankiley
force-pushed
the
ryan/slider-format
branch
2 times, most recently
from
October 12, 2026 00:50
a1f4d89 to
36e27b5
Compare
A slider takes format, which draws its readout from the value in place of its digits (a clock for minutes of the day), and parse, which reads typed text back, so the inline editor shows and takes the same text. Display only, like unit. A format that fails falls back to the digits, only a finite number from parse commits, and an editor left untouched commits nothing; without a parse, typed text must all be a number (less the unit), so "1,000" no longer commits 1. The editor sizes to its text, and the label to the room the readout leaves. The Numbers page has an example, and test/slider-format covers it.
ryankiley
force-pushed
the
ryan/slider-format
branch
from
October 12, 2026 01:04
36e27b5 to
05106df
Compare
Merged
ryankiley
added a commit
that referenced
this pull request
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A slider takes
format(value to readout text, in place of its digits) andparse(typed text back to a value), so a minutes-of-the-day slider can read "7:30 AM" and be typed into the same way. Display only, likeunit. A format that fails falls back to the digits, only a finite number from parse commits (a typo or anullleaves the value alone), and an editor left untouched commits nothing. Without a parse, typed text must all be a number less the unit, so "1,000" or "7:30" no longer commit 1 or 7. The editor sizes to its text, and the label to the room the readout leaves. Adds an example on the Numbers page and test/slider-format.