Note that there are some explanatory texts on larger screens.

plurals
  1. POConditional loading of items in a viewport
    primarykey
    data
    text
    <p>hello, to manage user access,i need to disable loading some items, in a viewport for now i hide them with a the "hidden" property, but I can't prevent the background processing for this items, such as the server request</p> <p>how can i disable loading for a specific items.</p> <p>this my viewport code</p> <pre><code>var notAllowAdmin=true; //init access rule gere for admin panel Ext.define('eFinances.view.Viewport', { extend: 'Ext.container.Viewport', requires: [ 'Ext.layout.container.Border' ], layout: 'border', items: [ { xtype: 'eFinancesToolbar', region: 'north' }, { title: 'Navigation', region: 'west', collapsible: true, split: true, width: 200, minWidth: 175, maxWidth: 400, animCollapse: true, margins: '0 0 0 5', layout: 'accordion', items: [{ xtype:'menuTresorerie', title: 'Trésoreries', iconCls: 'balance' // see the HEAD section for style used },{ xtype:'menuAchat', title: 'Achat et fournisseurs', iconCls: 'depense' // see the HEAD section for style used }, { xtype:'menuVente', title: 'Ventes et clients', iconCls: 'recette' }, { xtype:'menuAdmin', hidden :notAllowAdmin, // hide items if not allowed title: 'Administration', iconCls: 'administration' }] }, { region: 'center', title: 'work area' } ] }); </code></pre> <p>for the moment i hide admin panel with notAllowAdmin variable initialized with rules access , but whole background process are executed, some can tell me how to proceed to completly disactivate panel loading or give me best idea to do this (managing users access)</p> <p>regards</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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