I have a panel with 2 item and I want to hide/show them on the basis of requirement. Below is the code:
[HTML]
Ext.define('RA.view.Panel1', {
extend: 'Ext.Panel',
xtype: 'panel1',
requires: [
'Ext.chart.Panel'
],
config: {
id: 'Panel1',
layout: {type: 'vbox', pack: 'center'},
flex: 1,
style: "background-color: black; color:white",
items: [
{
xtype: 'chart',
hidden:true,
id: 'chart1',
//html: "<h1 style = 'color: red'>To configure this chart, tap this panel, click Settings to select axes, chart type, granularity, etc., then click Select Dates to select start and end dates.</h1>"
},