I would like to render buttons...
Code:
var sharerPrevButton = new Ext.Button({
text: '<-',
myStore: sharerStore,
handler: function(b, e) {
b.myStore.changeThumbnail(false)
}
})
var sharerNextButton = new Ext.Button({
text: '->',
myStore: sharerStore,
handler: function(b, e) {
b.myStore.changeThumbnail(true)
}
})
to the the template of the dataview...
Code:
var sharerExtraTpl = new Ext.XTemplate([
'<tpl for=".">',
'<div float:left>',
'<img src="{thumbnailURL}" alt="{title} />',
'<div id="sharerWindowThumbnailPrev"></div>',
'<div id="sharerWindowThumbnailNext"></div>',
'</div>',
'<div><h1>{title}</h1></div>',
'<div>{description}</div>',
'</tpl>'
])
(although there's a for loop, there's always only 1 record)
... I have an event for my store on load...
Code:
sharerStore.on('load', function(r, o) {
console.info('load')
console.info(sharerPrevButton)
console.info(document.getElementById('sharerWindowThumbnailPrev'))
})
but it doesn't ever see document.getElementById('sharerWindowThumbnailPrev')
how do I render into dataview? neither of the rendered divs with ids are ever seen.