Skip to Content
Menú
This question has been flagged
704 Vistes

const patchListRendererSkit = {

    async setup() {

        await this._super(...arguments);  // Correctly await the base setup method

        this._onPinIconClick = this._onPinIconClick.bind(this);

    

        // Bind the pin icon click handler

        $(document).on('click', '.pin-icon', this._onPinIconClick);

    },


    // Override the sort column click handler

     onClickSortColumn(ev) {

      if (!(isPinIcon)){

      ​ this._super(...arguments);

      }    

    },

    

    _onPinIconClick(ev) {

        // Handle the pin icon click event

if (ev.currentTarget.className) {

isPinIcon = true 

} else {

isPinIcon = false

}

when i click the pin icon..sort function should not get call..what should i do??

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’abr. 21
3577
2
de maig 19
20349
0
de març 17
2469
3
de maig 16
5274
11
d’oct. 24
98436