Override Calendar Manager

Discuss issues related to v4.x
Post Reply
User avatar
tiuwy76
Posts: 91
Joined: Sat Feb 20, 2016 6:36 am

Override Calendar Manager

Post by tiuwy76 »

I want to override Calendar Manager.
Image
Ex: Hidden the button Apply Change
Can someone help me
Thank you!

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 3091
Joined: Wed Jan 08, 2014 11:46 am

Re: Override Calendar Manager

Post by Maxim Gorkovsky »

Hello.
You can achieve this with simple override:

Code: Select all

Ext.override(Gnt.widget.calendar.CalendarManagerWindow, {
  initComponent : function () {
    this.callParent(arguments);
    this.down('button[text="Apply changes"]').hide();
  }
});

User avatar
Jean
Posts: 9
Joined: Wed Feb 20, 2019 11:12 pm

Re: Override Calendar Manager

Post by Jean »

If I want to add a new button and not hide, how is it done?

Post Reply