I have an ExtJS window with a toolbar at the top and it loads with a simple panel at the bottom using simple HTML. It works great. When I click the button, I want to replace the bottom panel (called content) with another panel. If you tried this
var clickHandler = function(calendar){ // 'content' is the panel id // calendar is also an Ext.Panel object Ext.getCmp('content').update(calendar); };
What am I missing?
The update replaces the HTML content.
You want to delete the old panel and add a new one. Try .remove () in the old panel and .add () in the new one, and don't forget .doLayout ().
Source: https://habr.com/ru/post/1750809/More articles:UIGraphicsGetImageFromCurrentImageContext утечка памяти для масштабирования изображения - memory-leaksRLINK32: Error opening file "... \ Data.DFM". The first time happens when I create a project after opening Delphi - delphiHow to send binary payload with request to JMeter? - jmeter(python) recursively remove capitalization from directory structure? - pythonHow to make INSERT and SELECT data partitioned tables? - postgresqlHow to ensure that a class template argument is derived from a specific Foo class? - c ++For example, placing a floating image in the lower right corner - htmlWhat is the purpose of the initial function in a PHP class that has the same name as the class? - functionFailed to connect to the mail server in the "localhost" port 25 - phphow can i check all array elements are the same? - arraysAll Articles