I’m trying to display a progress indicator while I pull some data from a server. I couldn’t find anything built into DHTMLX touch, so I found a Javascript library that is used as follows:
var target = document.getElementById(‘foo’);
var spinner = new Spinner(opts).spin(target);
I need to get a handle to a list defined as follows, as I want the indicator to be centered on the list, and not on the whole app:
{
view : "activeList",
id : "customerList",
name : "customerList",
type : { width : 'auto', height : 'auto', padding : 10 },
scroll : true,
datatype : "json",
select : true,
activeContent : {
deleteCustomerAC : {
id : "deleteCustomerBtn",
view : "button",
label : "delete",
width : 150,
earlyInit : true
}
},
template : "#lastName#, #firstName# (#name#) <div style='float:right'>{common.deleteCustomerAC()}</div>"
}
document.getElementById(“customerList”) returns nothing - is it possible to get ahold of the list in this manner? Or is there another progress indicator library known to work with dhtmlx touch?
Thanks.