Skip to content

Instantly share code, notes, and snippets.

@colek42
Created September 22, 2016 15:58
Show Gist options
  • Save colek42/8681bc7ceaadf8c47be3c1be1f409293 to your computer and use it in GitHub Desktop.
Save colek42/8681bc7ceaadf8c47be3c1be1f409293 to your computer and use it in GitHub Desktop.
Ext.define('Videx.common.basewebplayer.videoslider.VideoSliderModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.videoslider-videoslider',
data: {
sensorId: null,
startTime: null,
stopTime: null
},
stores: {
metadata: {
proxy: {
type: 'rest',
url: 'sensors/{sensorId}/metadata?startTime={startTime}&stopTime={stopTime}',
startParam: 'startTime',
timeout: 10000,
reader: 'json'
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment