anyuianyui
Home
Getting Started
Documentation
Download
  • English
  • 简体中文
Home
Getting Started
Documentation
Download
  • English
  • 简体中文
  • Setup

    • Installation
  • Core Concepts

    • Introduction
    • Design
    • Hide and Lock
    • Resource Management
  • Higher Order Component

    • State Button
    • Label Slider
    • Value Slider
    • Check Group & Radio Group
    • StatusBar
    • NavigateBar
    • Drawer
  • Advanced Features

    • Use External Image File as Source
    • GIF Animated Image
    • Template Component
    • Global Components
    • Screen Management
    • Communication Commands and Events
    • Lottie Animation
  • Development

    • Build Mode
    • Build Toolchain Configuration
    • Code Transplant
  • Technical Support

    • FAQ

Introduction

The Value Slider is a Higher Order Component that extends slider functionality with customizable labels and images. Similar to the Label Slider, it differs by displaying only a single label that shows the current value and follows the slider's tick, rather than displaying a separate label for each tick position.

Component Structure

The Value Slider encapsulates the following components:

  • Container (x1): Provides the background for the HoC
  • Images (x3): Display images for each state
  • Labels (x3): Display labels for each state
  • Slider (x1): Handles user interaction

Properties

The Value Slider provides the following configurable properties:

States Configure the number of states for the HoC, with each state supporting:

  • Up to 3 configurable images
  • Up to 3 configurable labels

Current State Represents the active state of the HoC. This value can be modified to observe visual changes.

Slider Label

Similar to the Label Slider, the Value Slider features a Slider Label positioned adjacent to the slider. The label position is automatically calculated to align with the slider's current tick, making position configuration unavailable.

Configuration

By default, the Value Slider displays two images and a slider label. To display additional images and labels, right-click the HoC and select Edit to access the HoC editor for configuration modifications.

The Value Slider's appearance and settings are similar to the Label Slider.

Prev
Label Slider
Next
Check Group & Radio Group