Page History
Web Application - DeviceChanged
...
Event
| Panel | ||
|---|---|---|
| ||
Fired when the application is resized and the device changes |
Member of of Web Application (PRIM_WEB.Application)
Details
The DeviceChanged event is fired whenever there is a change from one device size to another. The
The Device property identifies the currently active device.
Example
In this example, a different layout is applied based on the Device.
Evtroutine Handling(#Sys_Web.DeviceChanged)
Case (#Sys_Web.Device)
When (= Desktop)
#Com_owner.Layout <= #LayoutDesktop
When (= Mobile)
#Com_owner.Layout <= #LayoutMobile
When (= Tablet)
#Com_owner.Layout <= #LayoutTablet
Endcase
Endroutine