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

Higher Order Components (HoC)

Higher Order Components represent sophisticated composite architectures that encapsulate multiple LVGL components with predefined behavioral patterns and interactions. These components provide engineered solutions for common UI patterns while maintaining configurability and extensibility.

Architecture Overview

HoCs implement abstraction layers over basic LVGL components, providing:

  • Encapsulated Behavior: Complex interaction logic handled through internal state management
  • Consistent Interface: Standardized appearance and behavior patterns
  • Development Efficiency: Reduced implementation time for standard UI patterns
  • Configuration Flexibility: Comprehensive customization options while maintaining architectural integrity

Component Catalog

Interactive Control Components

  • State Button - Multi-state button implementation with visual feedback mechanisms
  • Label Slider - Slider component with integrated value display functionality
  • Value Slider - Numeric input component with slider control interface

Input and Selection Components

  • Check Group - Grouped checkbox and radio button control systems

Navigation and Layout Components

  • Drawer Component - Slide-out navigation panel implementation
  • Status Bar - System status display component architecture
  • Navigation Bar - Primary navigation interface component

Implementation Guidelines

Higher Order Components are recommended for the following use cases:

  1. Standard Interface Patterns: Implementation of established UI paradigms such as navigation systems
  2. Complex State Management: Multi-step user interactions requiring sophisticated state handling
  3. Design System Consistency: Maintaining uniform design patterns across application modules
  4. Rapid Development: Accelerated development cycles for standard interface components

Integration Workflow

  1. Identify appropriate HoC components within the component palette
  2. Deploy components to the design canvas using drag-and-drop operations
  3. Configure component parameters through the properties inspector
  4. Apply custom styling to align with application design requirements

Each HoC includes comprehensive technical documentation covering implementation examples, parameter specifications, and customization procedures.

Implementation Best Practices

  • Component Selection: Choose HoCs that precisely match functional requirements and use cases
  • Configuration Strategy: Utilize customization parameters while preserving usability and accessibility
  • Integration Testing: Validate HoC behavior within the target application context and user workflows
  • Performance Optimization: Monitor resource utilization and rendering performance for complex HoC implementations

For detailed implementation guidance, refer to the HoC Technical Specifications covering architecture patterns and customization procedures.