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 » Mon Oct 31, 2016 10:20 am

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: 2733
Joined: Wed Jan 08, 2014 11:46 am

Re: Override Calendar Manager

Post by Maxim Gorkovsky » Fri Nov 04, 2016 9:37 am

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 » Thu Feb 21, 2019 9:19 pm

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

Post Reply