0

Can I have multiple inputs for any given type?

I am trying to customize the query builder by adding two date range pickers (from date and to date) to each rule.

 filters: [
 {
   id: 'category',
   label: 'Category',
   type: 'integer',
   input: 'select',
     values: {
        1: 'Books',
        2: 'Movies',
        3: 'Music',
        4: 'Tools'
              },
{
 id: 'date',
 label: 'Date Range Picker',
 type: 'date',
 validation: {
 format: 'YYYY/MM/DD'
 },
 plugin: 'datepicker',
 plugin_config: {
 format: 'yyyy/mm/dd',
 todayBtn: 'linked',
 todayHighlight: true,
 autoclose: true
   }
}

after select Category I want to display from Date & to Date input picker

freedomn-m
  • 27,664
  • 8
  • 35
  • 57
nawaz uddin
  • 345
  • 2
  • 14

0 Answers0