Skip to main content
Use this API to show a cascading picker for hierarchical data selection.

Parameters

PropertyTypeRequiredDescription
titleStringNoSelector title
listArrayYesHierarchical data array
successFunctionNoCallback with selection
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
successBooleanWhether selection was successful
resultArraySelected items array

Code Example

my.multiLevelSelect({
  title: 'Select Location',
  list: [
    {
      name: 'USA',
      subList: [
        { name: 'California' },
        { name: 'New York' }
      ]
    }
  ],
  success: (res) => {
    console.log('Selected:', res.result);
  }
});

my.datePicker

Date picker