Parameters
Success Callback
Code Example
Related APIs
my.datePicker
Date picker
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Display a multi-level cascading selector.
| Property | Type | Required | Description |
|---|---|---|---|
| title | String | No | Selector title |
| list | JsonArray | Yes | Selection data list |
| name | String | Yes | Entry name (property of each object in list) |
| subList | JsonArray | No | Sub-entry list (property of each object in list) |
| success | Function | No | Callback with selection |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
| Property | Type | Description |
|---|---|---|
| success | Boolean | Whether selection was successful (returns false for cancellation) |
| result | JsonArray | Selected items array, e.g. [{"name":"City"},{"name":"District A"},{"name":"Street A"}] |
my.multiLevelSelect({
title: 'Select Location',
list: [
{
name: 'USA',
subList: [
{ name: 'California' },
{ name: 'New York' }
]
}
],
success: (res) => {
console.log('Selected:', res.result);
}
});