Thursday 26 September 2013

Scencha touch , check the OS i.e. is Desktop,Tablet etc

Following is the code snippet which tells you about current system ( actually sencha touch ):
if(Ext.os.is.Tablet){
    console.log('tablet');
}else if(Ext.os.is.Phone){
    console.log('phone');
}else{
    console.log('other');
}

No comments:

Post a Comment