ESP-Brookesia Programming Guide Logo
  • Getting Started
  • Utils Components
  • Hardware Components
  • Service Components
  • App Components
  • GUI Components
    • GUI Interface
      • Overview
      • Mainline Model
      • Global Constraints
      • Json UI Specification
        • Document
        • Assets
        • View
        • Styling
          • Overview
          • Related Documents
          • Documents for This Group
            • Layout
            • Placement
            • Style
            • Props
        • Interaction
        • Runtime
        • Protocol Maintenance
    • LVGL Backend
  • Runtime Components
  • System Components
ESP-Brookesia Programming Guide
  • »
  • GUI Components »
  • GUI Interface »
  • Styling »
  • Props »
  • Dropdownprops
  • Edit on GitHub

Dropdownprops

[中文]

Overview

dropdownProps applies to dropdown.

Related Documents

  • Props

  • Dropdown

Field Table

Key

Type

Default

Binding

UI Effect / Limits

options

string[]

[]

dropdownProps.options

dropdown options; the binding string must resolve to a string array

selectedIndex

integer

0

dropdownProps.selectedIndex

index of the currently selected item

Example

"dropdownProps": {
    "options": ["Light", "Dark"],
    "selectedIndex": 0
}
Previous Next

© Copyright 2026, Espressif Systems (Shanghai) CO., LTD.

  • Built with Sphinx using a theme based on Read the Docs Sphinx Theme.
  • Download PDF