Repository navigation
Slider: optionally show its minimum and maximum - #15
Merged
Merged
Conversation
A new Slider property, showRange (显示上下限, off by default), as in FluentHMI Studio: the minimum at the left end and the maximum at the right end in caption text. With it off the widget is the plain Slider as before; with it on, a SliderWithLimits row holds the Slider and the two labels (app/core/slider_limits.py, also shipped into exported apps). Code that wires or binds a slider goes through slider_of(), which gives the Slider either way, and the designer rebuilds the widget when the property changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The generated code now includes slider_limits.py and reaches the slider through slider_of(); the demo's behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 new Slider property,
showRange(显示上下限, off by default), as in FluentHMI Studio: the minimum at the left end and the maximum at the right end in caption text.SliderWithLimitsrow holds the Slider and the two labels. It lives inapp/core/slider_limits.py, which is also shipped into exported apps.slider_of(), which gives the Slider either way. The designer rebuilds the widget when the property changes.demo/is regenerated because the export now includes the helper; the demo's behaviour is unchanged.docs/uidp-widgets.mdis regenerated, anden.jsonhas the new label.Checked: the 234 unit tests pass offscreen, and both slider states render as in Studio.
🤖 Generated with Claude Code