11import Button from '../../../src/button/Base.mjs' ;
22import CheckBox from '../../../src/form/field/CheckBox.mjs' ;
33import ConfigurationViewport from '../../ConfigurationViewport.mjs' ;
4+ import Container from '../../../src/container/Base.mjs' ;
45import NumberField from '../../../src/form/field/Number.mjs' ;
56import Radio from '../../../src/form/field/Radio.mjs' ;
67import SelectField from '../../../src/form/field/Select.mjs' ;
@@ -15,7 +16,14 @@ class MainContainer extends ConfigurationViewport {
1516 className : 'Neo.examples.button.base.MainContainer' ,
1617 configItemLabelWidth : 160 ,
1718 configItemWidth : 280 ,
18- layout : { ntype : 'hbox' , align : 'stretch' }
19+ layout : { ntype : 'hbox' , align : 'stretch' } ,
20+
21+ exampleContainerConfig : {
22+ style : {
23+ overflow : 'auto' ,
24+ padding : '20px'
25+ }
26+ }
1927 }
2028
2129 createConfigurationComponents ( ) {
@@ -175,32 +183,39 @@ class MainContainer extends ConfigurationViewport {
175183 */
176184 createExampleComponent ( ) {
177185 return Neo . create ( {
178- module : Button ,
179- badgeText : 'Badge' ,
180- handler : data => console . log ( 'button click =>' , data . component . id ) ,
181- height : 50 ,
182- iconCls : 'fa fa-home' ,
183- text : 'Hello World' ,
184- ui : 'primary' ,
185- width : 150 ,
186+ module : Container ,
187+ height : 2000 ,
188+ layout : 'vbox' ,
186189
187- menu : [ {
188- handler : data => console . log ( 'menu item 1 click =>' , data ) ,
189- iconCls : 'fa fa-home' ,
190- text : 'Item 1'
191- } , {
192- handler : data => console . log ( 'menu item 2 click =>' , data ) ,
193- iconCls : 'fa fa-user' ,
194- text : 'Item 2'
195- } , {
196- handler : data => console . log ( 'menu item 3 click =>' , data ) ,
197- iconCls : 'fa fa-play' ,
198- text : 'Item 3'
199- } ]
190+ items : [ {
191+ module : Button ,
192+ badgeText : 'Badge' ,
193+ handler : data => console . log ( 'button click =>' , data . component . id ) ,
194+ height : 50 ,
195+ iconCls : 'fa fa-home' ,
196+ style : { marginTop : '500px' } ,
197+ text : 'Hello World' ,
198+ ui : 'primary' ,
199+ width : 150 ,
200200
201- /*tooltips: [{
202- text: 'Hello World Tooltip'
203- }]*/
201+ menu : [ {
202+ handler : data => console . log ( 'menu item 1 click =>' , data ) ,
203+ iconCls : 'fa fa-home' ,
204+ text : 'Item 1'
205+ } , {
206+ handler : data => console . log ( 'menu item 2 click =>' , data ) ,
207+ iconCls : 'fa fa-user' ,
208+ text : 'Item 2'
209+ } , {
210+ handler : data => console . log ( 'menu item 3 click =>' , data ) ,
211+ iconCls : 'fa fa-play' ,
212+ text : 'Item 3'
213+ } ]
214+
215+ /*tooltips: [{
216+ text: 'Hello World Tooltip'
217+ }]*/
218+ } ]
204219 } )
205220 }
206221}
0 commit comments