Материал из Module developer
Перейти к: навигация, поиск

In this example the variable my_resolution is assigned the type of our device. Then we perform selection by the device type and depending on the type assign the variable Error the wiget of our type (phone, tablet).
You can also use the following for testing one or another type: