ucan-ext-js-kitchen-sink
Version:
my-ext-gen-app description for Ext JS app MyExtGenApp
72 lines (70 loc) • 1.5 kB
JavaScript
Ext.define('UCANSink.view.componentDetail.examples.detailView.exampleViewModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.ucandetailViewexampleviewmodel',
data: {
testObject: {
name: 'Test Name',
id: 42,
description: 'This object is for testing purposes only, it has no usage outside of this example.',
asString: 'Test Name (42)',
tags: [
{
name: 'Tag 1',
value: 1
},
{
name: 'Tag 2',
value: 2
},
{
name: 'Tag 3',
value: 3
}
]
},
translator: {
detailView_detail_view_tooltip: 'This is the detail view',
detailView_chip_tooltip: 'This is the UCAN chip view',
name: 'Name',
description: 'Description',
additional_information: 'Additional information',
chicken_press_tooltip: 'Take a bite',
add: 'Add'
}
},
stores: {
availableStore: {
data: [
{
id: '0',
name: 'A0',
asString: 'A0 (0)'
},
{
id: '1',
name: 'A1',
asString: 'A1 (1)'
},
{
id: '2',
name: 'A2',
asString: 'A2 (2)'
},
{
id: '3',
name: 'A3',
asString: 'A3 (3)'
}
]
},
selectedStore: {
data: [
{
id: '3',
name: 'A3',
asString: 'A3 (3)'
}
]
}
}
});