Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to show hidden widget in desktop/panel with extjs?
    text
    copied!<p>i have a toolbar in my desktop. also i have a button on desktop for showing and hiding this toolbar. at the moment i have extra button for hiding in toolbar itself and its works ok. if Iam hiding it, toolbar is completely initialized and panel1.object (see code below) looks like this:</p> <blockquote> <pre><code>activeUI: "default" autoGenId: true body: constructor collapseDirection: "top" componentCls: "x-panel" componentLayout: constructor componentLayoutCounter: 2 container: constructor dd: constructor dock: "top" dockedItems: constructor el: constructor events: Object floatingItems: constructor frame: undefined hasListeners: HasListeners height: 35 hidden: true hiddenByLayout: null hiddenOnCollapse: constructor hierarchyState: Object hierarchyStateInner: Object id: "TESTtoolbarX-1034" initialConfig: Object initialStyle: Object items: constructor lastBox: Object layout: constructor layoutCounter: 2 loader: null margin$: Object ownerCt: constructor ownerLayout: constructor plugins: undefined pluginsInitialized: true protoEl: null renderData: Object renderSelectors: Object rendered: true rendering: null scrollFlags: Object stateEvents: Array[0] stateId: undefined tools: Array[0] ui: "default" uiCls: Array[1] x: 0 y: 0 __proto__: Object </code></pre> </blockquote> <p>if i'm trying to SHOW my toolbar with external button on the dekstop my panel1.object is much shorter.</p> <pre><code>autoGenId: true collapseDirection: "top" componentCls: "x-panel" componentLayout: constructor dockedItems: constructor events: Object floatingItems: constructor hasListeners: HasListeners height: 35 hiddenOnCollapse: constructor id: "TESTtoolbarX-1067" initialConfig: Object initialStyle: Object items: constructor layout: constructor loader: null plugins: undefined pluginsInitialized: true protoEl: constructor renderData: Object renderSelectors: Object stateEvents: Array[0] stateId: undefined __proto__: Object </code></pre> <p>i'm trying to show it like this (Code from Controller):</p> <pre><code> onShowToolbar: function() { debugger; var panel1 = Ext.create('TEST.view.desktop.Toolbar', { maxWidth: 360, height: 35 }); panel1.show();}, </code></pre> <p>how i can show this <em>*</em> toolbar right? please help!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload