Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt

Use this file to discover all available pages before exploring further.

Use this API to show a date/time picker for user selection.

Parameters

PropertyTypeRequiredDescription
formatStringNoFormat: yyyy-MM-dd, HH:mm, yyyy-MM-dd HH:mm, yyyy-MM, yyyy
currentDateStringNoInitial selected date
startDateStringNoMinimum selectable date
endDateStringNoMaximum selectable date
successFunctionNoCallback with selected date
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
dateStringSelected date in specified format

Code Example

my.datePicker({
  format: 'yyyy-MM-dd',
  currentDate: '2024-01-15',
  startDate: '2024-01-01',
  endDate: '2024-12-31',
  success: (res) => {
    console.log('Selected:', res.date);
  }
});

my.multiLevelSelect

Multi-level selector