Zum Hauptinhalt gehen

How to determine what type of device the end user is using.

Kommentare

1 Kommentar

  • Ken Lyon

    Web AppBuilder gives some indication on whether or not it is running on a mobile device based on the size of the browser window. The default threshold is 600 pixels. I believe if either the width or the height is smaller than this, it switches to "mobile mode". (You should be able to test this by resizing a browser window on desktop.)

     

    I realize this is not strictly "on mobile" but usually the reason for the difference in behaviour is the smaller space available.

     

    When in "mobile mode" you will see the class of "jimu-ismobile" in certain elements of the page. Also, in JavaScript you can check this:

    appInfo.isRunInMobile

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.