Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
960 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Apr 21
3874
2
Mei 19
20824
0
Mar 17
2716
3
Mei 16
5517
11
Okt 24
99730