Slider Type
The layout object for custom slider implementation
Static members
Static member | Description |
Full Usage:
Slider.init (?Active, ?ActiveBgColor, ?BgColor, ?BorderColor, ?BorderWidth, ?CurrentValue, ?Font, ?Len, ?LenMode, ?MinorTickLen, ?Name, ?Padding, ?Steps, ?TemplateItemName, ?TickColor, ?TickLen, ?TickWidth, ?Transition, ?Visible, ?X, ?XAnchor, ?Y, ?YAnchor)
Parameters:
int
-
Determines which button (by index starting from 0) is considered active
?ActiveBgColor : Color
-
Sets the background color of the slider grip while dragging
?BgColor : Color
-
Sets the background color of the slider
?BorderColor : Color
-
Sets the background color of the slider
?BorderWidth : int
-
Sets the color of the border enclosing the slider
?CurrentValue : SliderCurrentValue
-
Object containing the current slider value style
?Font : Font
-
Sets the font of the slider step labels
?Len : float
-
Sets the length of the slider This measure excludes the padding of both ends.
That is, the slider's length is this length minus the padding on both ends
?LenMode : UnitMode
-
Determines whether this slider length is set in units of plot "fraction" or in "pixels.
Use `len` to set the value
?MinorTickLen : int
-
Sets the length in pixels of minor step tick marks
?Name : string
-
When used in a template, named items are created in the output figure in addition
to any items the figure already has in this array.
You can modify these items in the output figure by making your own item with `templateitemname`
matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it).
Has no effect outside of a template.
?Padding : Padding
-
Set the padding of the slider component along each side
?Steps : SliderStep seq
-
The steps of the slider including step arguments
?TemplateItemName : string
-
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a matching item
in the input figure, but you can modify one by making an item with
`templateitemname` matching its `name`, alongside your modifications
(including `visible: false` or `enabled: false` to hide it).
If there is no template or no matching item, this item will be hidden unless
you explicitly show it with `visible: true`.
?TickColor : Color
-
Sets the color of the border enclosing the slider
?TickLen : int
-
Sets the length in pixels of step tick marks
?TickWidth : int
-
Sets the tick width (in px)
?Transition : Transition
-
Object containing the information about steps transition
?Visible : bool
-
Determines whether or not the slider is visible
?X : int
-
Sets the x position (in normalized coordinates) of the slider
?XAnchor : XAnchorPosition
-
Sets the slider's horizontal position anchor.
This anchor binds the `x` position to the "left", "center" or "right" of the range selector
?Y : int
-
Sets the y position (in normalized coordinates) of the slider
?YAnchor : YAnchorPosition
-
Sets the slider's vertical position anchor.
This anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector
Returns: Slider
|
|
Full Usage:
Slider.style (?Active, ?ActiveBgColor, ?BgColor, ?BorderColor, ?BorderWidth, ?CurrentValue, ?Font, ?Len, ?LenMode, ?MinorTickLen, ?Name, ?Padding, ?Steps, ?TemplateItemName, ?TickColor, ?TickLen, ?TickWidth, ?Transition, ?Visible, ?X, ?XAnchor, ?Y, ?YAnchor)
Parameters:
int
?ActiveBgColor : Color
?BgColor : Color
?BorderColor : Color
?BorderWidth : int
?CurrentValue : SliderCurrentValue
?Font : Font
?Len : float
?LenMode : UnitMode
?MinorTickLen : int
?Name : string
?Padding : Padding
?Steps : SliderStep seq
?TemplateItemName : string
?TickColor : Color
?TickLen : int
?TickWidth : int
?Transition : Transition
?Visible : bool
?X : int
?XAnchor : XAnchorPosition
?Y : int
?YAnchor : YAnchorPosition
Returns: Slider -> Slider
|
|