SliderComponent

The SliderComponent creates a fully customisable slider for you. With it, you can adjust any numeric value or layer property. It consists of three layers: the slider itself, the fill and the knob.
译:slidercomponent为你创建一个完全可定制的滑块。有了它,您可以调整任何数字值或图层属性。它由三层:滑块本身,填充和旋钮。

# Create a SliderComponent  
slider = new SliderComponent
slider.center()

By default, the slider has a dark fill color, a light-gray backgroundColor and rounded corners with borderRadius. The radius of the fill automatically matches with that of the slider, so you only need to set it once.
译:默认情况下,滑块有一个深色的填充颜色,浅灰色的底色和圆角与borderradius。自动填充的半径与滑块的匹配,所以你只需要设置一次。

# Customize the appearance 
slider.backgroundColor = "#ddd"
slider.borderRadius = 4

results matching ""

    No results matching ""