File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { default as Container } from '../../../src/container/Base.mjs' ;
1+ import { default as Container } from '../../../src/container/Base.mjs' ;
2+ import CountryStore from '../store/Countries.mjs' ;
3+ import { default as SelectField } from '../../../src/form/field/Select.mjs' ;
24
35/**
46 * @class Covid.view.HeaderContainer
@@ -32,12 +34,23 @@ class HeaderContainer extends Container {
3234 html : 'COVID-19 neo.mjs App' ,
3335 style : { padding : '20px' } ,
3436 width : 210
37+ } , {
38+ module : SelectField ,
39+ displayField : 'country' ,
40+ flex : 'none' ,
41+ height : 25 ,
42+ labelPosition : 'inline' ,
43+ labelText : 'Select a Country' ,
44+ reference : 'country-field' ,
45+ store : CountryStore ,
46+ style : { marginTop : '15px' } ,
47+ width : 150
3548 } , {
3649 ntype : 'button' ,
3750 flex : 'none' ,
3851 handler : 'onSwitchThemeButtonClick' ,
3952 height : 25 ,
40- style : { marginTop : '15px' } ,
53+ style : { marginLeft : '10px' , marginTop : '15px' } ,
4154 text : 'Theme Light'
4255 } , {
4356 reference : 'summary-table' ,
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ class MainContainerController extends ComponentController {
7474
7575 me . data = data ;
7676
77+ me . getReference ( 'country-field' ) . store . data = data ;
78+
7779 switch ( me . activeMainTabIndex ) {
7880 case 0 :
7981 me . getReference ( 'table' ) . store . data = data ;
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ class Picker extends Text {
259259 * @param {Object } data
260260 * @private
261261 */
262- onKeyDownEscape ( ) {
262+ onKeyDownEscape ( data ) {
263263 if ( this . pickerIsMounted ) {
264264 this . hidePicker ( ) ;
265265 }
You can’t perform that action at this time.
0 commit comments