Skip to content

Slider: optionally show its minimum and maximum - #15

Merged
txp666 merged 2 commits into
mainfrom
slider-range
Nov 9, 2026
Merged

txp666 merged 2 commits into
mainfrom
slider-range

Conversation

@txp666

@txp666 txp666 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

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, exactly as before.
  • With it on, a SliderWithLimits row holds the Slider and the two labels. It lives in app/core/slider_limits.py, which is also shipped into exported apps.
  • Code that wires or binds a slider (preview, data binding, code generator) goes through 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.
  • The widget reference in docs/uidp-widgets.md is regenerated, and en.json has the new label.

Checked: the 234 unit tests pass offscreen, and both slider states render as in Studio.

🤖 Generated with Claude Code

txp666 and others added 2 commits November 9, 2026 16:52
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>
@txp666
txp666 merged commit 93a6a79 into main Nov 9, 2026
6 checks passed
@txp666
txp666 deleted the slider-range branch November 9, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant