Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
997 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
apr 21
3899
2
mag 19
20861
0
mar 17
2759
3
mag 16
5530
11
ott 24
99786