Skip to Content
Menu
This question has been flagged
986 Rodiniai

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??

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
bal. 21
3890
2
geg. 19
20848
0
kov. 17
2739
3
geg. 16
5523
11
spal. 24
99766