Our blazing fast Grid component built with pure JavaScript


Post by tjmeal »

Thanks for your reply,

Any reply regarding me first question which dont trigger confirm listener ? Have u tested it ?


Post by alex.l »

Hi,

Please review code snippet in my original reply. I am listening to a picker, not a field itself.

All the best,
Alex


Post by tjmeal »

I think i understand what do you mean but how can i access picker's listeners from the following code in react ?

  tbar: {
    items: {
      dateRange: {
        type: 'daterangefield',
        placeholder: 'Select Date',
        confirmable: true,
        revertOnEscape: true,
        autoExpand: true,
        clearable: true,
        onClear(props) {
          console.log('onClear', props);
        },
        onConfirm: (value) => {
          console.log('onConfirm', props);
        }
      },
    }
  },

Thanks in advance for your help.


Post by sergey.maltsev »

You can configure via https://bryntum.com/products/grid/docs/api/Core/widget/DateRangeField#config-picker

  tbar: {
    items: {
      dateRange: {
        picker {
           // add listeners or other config options you need for picker here
        }
        ...
      },
    }
  },

Post by tjmeal »

Thank you very much !!


Post Reply