Slide 18
Slide 18 text
Copyright Sencha Inc. 2014 18
EXT JS 5 | RESPONSIVE CONFIG
Ext.create({
xtype: 'viewport',
layout: 'border',
!
items: [{
title: 'Some Title',
plugins: 'responsive',
!
responsiveConfig: {
landscape: {
region: 'north'
},
!
portrait: {
region: 'west'
}
}
}]
});
MyViewport.js
Ext.create({
xtype: 'viewport',
layout: 'border',
!
items: [{
title: 'Some Title',
plugins: 'responsive',
!
responsiveConfig: {
'width < 800': {
region: 'north'
},
!
'width >= 800': {
region: 'west'
}
}
}]
});
MyViewport.js
New plugin that can be added to
component instances.
Enforces how the component is
configured under different
conditions.
Responsive Config