Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
970 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
dub 21
3880
2
kvě 19
20832
0
bře 17
2724
3
kvě 16
5519
11
říj 24
99747