Designing a Responsive User Interface
- 更新时间2023-02-17
- 阅读时长2分钟
Designing a Responsive User Interface
You can design the user interface of a WebVI to respond to different screen sizes.
- Create a WebVI within your application document.
- On the Panel tab, set Panel layout to Flexible.
-
Create containers by placing objects on the panel.
- On an empty panel, place a control or indicator anywhere on the panel to create a container.
- Place a control or indicator outside an existing container to create a new container. You can create multiple containers in a column or in a row.
A container appears as a border when you hover over objects on the panel. - Select a container and configure the layout options in the Layout section of the Item tab to determine how objects in the container arrange and align when the screen size changes.
- Select an object and configure the layout options in the Layout section of the Item tab to set the object size and whether the object resizes when the screen size changes.
- Click to save all files.
-
Select to view your application in a web browser.
Resize the web browser and ensure the controls and indicators resize appropriately.
To make your web application available to other users, host your build output on a web server that is accessible to other users.
相关内容
- Aligning and Arranging Objects in a Responsive User Interface
A container groups together controls and indicators and determines their arrangement on the panel. If the screen size on which you view your application changes, the objects in a container rearrange according to the layout settings of the container. Containers exist only on panels whose layout type is flexible.
- Building a Web Application
To view your completed web application in a web browser, build your application to generate HTML, CSS, JavaScript, and other files that are included in your application.
- Hosting a Web Application on a Server
To make your web application available to other users, host your build output on a web server that is accessible to other users.