responsive design



  • is it possible with the index.hmi that on the mobile phone I get another hmi design that on the tablet



  • Hi Martijn,
    no support for this at the moment. Still, you can implement it with a custom Javascript included in your HMI. Something like "if screen_width<N then redirect to another HTML page".

    Jaroslav



  • @jaroslav_sobota said in responsive design:

    Hi Martijn,
    no support for this at the moment. Still, you can implement it with a custom Javascript included in your HMI. Something like "if screen_width<N then redirect to another HTML page".

    how do I implement a custom Javascript in my HMI



  • Hi Martijn,
    here is an example project which includes a custom Javascript file: 0101-51_Custom_js.zip

    The main trick is to add the CUSTOM "library" in Expert settings in HMI Designer. The GENERAL library must be added as well:
    0_1583833486862_rexygen-hmi-custom-javascript.png

    The "library" CUSTOM is located in the hmisrc folder and it has to have a "js" subfolder which contains your Javascript files. These are then included in the generated HMI files.

    Hope this helps, let me know.

    Best regards
    Jaroslav


Log in to reply