Tuesday, 13 February 2018

Sencha Extjs how to find deviceType

This is very useful while working on responsive applications, some places we need to know the what is DeviceType and operating system like that.

Extjs came with os singleton class  Ext.os

Provides information about the current operating system environment.

Like below:


    1. deviceType
      :"Phone"
    2. name:"Android"
    3. version:Version
      1. build:0
      2. major:5
      3. minor:0
      4. pad:0
      5. patch:0
      6. releaseValue:0
      7. shortVersion:"50"
      8. version:"5.0"


No comments:

Post a Comment