Class Slider
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLElement, Slider>, ElementClassListMethods<HTMLElement, Slider>, ElementConsumerMethods<HTMLElement, Slider>, ElementContainerMethods<HTMLElement, Slider>, ElementEventMethods<HTMLElement, Slider>, ElementIdMethods<HTMLElement, Slider>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, Slider>, HTMLElementDataMethods<HTMLElement, Slider>, HTMLElementStyleMethods<HTMLElement, Slider>, HTMLElementVisibilityMethods<HTMLElement, Slider>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, Slider>, Component, HasValue<Double>, Modifiers.Disabled<HTMLElement, Slider>
public class Slider
extends BaseComponent<HTMLElement, Slider>
implements Modifiers.Disabled<HTMLElement, Slider>, HasValue<Double>, Attachable
A slider provides a quick and effective way for users to set and adjust a numeric value from a defined range of values.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddEndActions(SliderActions actions) addStartActions(SliderActions actions) addValueInput(TextInput valueInput) addValueInput(TextInput textInput, SliderInputPosition inputPosition) addValueInput(InputGroup valueInput) addValueInput(InputGroup valueInput, SliderInputPosition inputPosition) ariaDescribedBy(String describedBy) Sets the aria attribute on the slider and the thumb element.ariaLabelledBy(String labelledBy) Sets the aria attribute on the slider and the thumb element.ariaThumbLabel(String label) voidattach(MutationRecord mutationRecord) Returns the current step of the slider.customSteps(boolean continuous, SliderSteps steps) customSteps(SliderSteps steps) voiddecrease()voiddetach(MutationRecord mutationRecord) disabled(boolean disabled) Adds/removes modifier(disabled)voidincrease()intintValue()max(double max) min(double min) onChange(ChangeHandler<Slider, Double> changeHandler) range(double min, double max) range(double min, double max, double step) showBoundaries(boolean showBoundaries) showTicks(boolean showTicks) slider()step(double step) that()toolTipOnThumb(boolean tooltipOnThumb) value()value(double value) Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Disabled
disabled, isDisabled
-
Method Details
-
slider
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
addStartActions
-
addEndActions
-
addValueInput
-
addValueInput
-
addValueInput
-
addValueInput
-
customSteps
-
customSteps
-
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, Slider>
-
min
-
max
-
step
-
range
-
range
-
showBoundaries
-
showBoundaries
-
showTicks
-
showTicks
-
toolTipOnThumb
-
toolTipOnThumb
-
value
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, Slider>
-
ariaLabel
-
ariaDescribedBy
-
ariaLabelledBy
-
ariaThumbLabel
-
onChange
-
decrease
public void decrease() -
increase
public void increase() -
value
-
intValue
public int intValue() -
currentStep
Returns the current step of the slider.
-