Create a web application

更新时间:
复制 MD 格式

The visual development tool provides a web application editor that helps you create a web-based control interface quickly and easily, without writing any code.

Procedure

  1. Create a project. For more information, see Standard Project.

  2. On the project Home Page, under Project Development, select Web Application.

  3. Above the application list, click New.

  4. In the New Web Application dialog box, enter an application name and description, and click Confirm.

    Parameter

    Description

    Application Name

    The name for the application. It must be up to 30 characters long and start with a letter, number, or Chinese character. Allowed characters include letters, numbers, Chinese characters, underscores (_), hyphens (-), and parentheses (()). Each Chinese character counts as a single character.

    Description

    An optional description for the application, up to 100 characters long. Each Chinese character counts as a single character.

    After you create the application, the web application editor opens automatically. The following sections describe the functional areas of the editor.

Left navigation pane

Feature

Description

页面

Pages: A list of navigation layouts and pages in the current application.

Navigation layouts:

  • Blank

  • Top Bar: Displays a logo and the web application name in the upper-left corner of the page.

  • Left Navigation: Displays a logo and a navigation menu on the left side of the page.

  • Top Bar and Left Navigation: Displays a logo and the web application name in the upper-left corner and a navigation menu on the left side of the page.

After you select a page layout, click Configure to enable and configure the application's navigation menu. For more information, see Navigation Menu.

In the Pages list, you can select a page to customize its name, or add or delete pages. For more information, see Pages.

组件

Components: Displays a list of available components for visual development. Drag a component to the canvas to use it in your application. For more information about component descriptions and configurations, see Components.

设备绑定管理

Device Binding Management: On the Bind Devices to Application page, you can batch bind devices to components that use device data as their data source. For more information, see Batch Bind Devices.

应用设置

Application Settings: On this page, you can update the application name and description, enable account authentication and token-based authentication, view the application's publishing history, and manage domain names bound to the application. For more information, see Account Authentication, Token-based Authentication, and Domain Name Management.

Canvas

The center of the editor is the canvas.

The toolbar below the canvas provides the following options, from left to right:

Feature

Description

Ruler

Toggles the display of rulers along the canvas edges, which helps you gauge page dimensions.

Grid

Toggles a 4x4-pixel grid on the canvas to help you position components.

All components on the page automatically snap to the grid for alignment.

Guide

Toggles red guides that help you align components.

Fit Canvas

Click the 适合 icon to fit the entire page within the visible canvas area.

Zoom

Zooms the current page in or out.

Responsive

When selected, the application page automatically adjusts its layout to fit different browser resolutions. You can verify the responsive layout in preview or after publishing.

Right-side configuration pane

When you select a component on the canvas, its configuration pane appears on the right.

Category

Description

Style

Controls the visual appearance of the selected component on the page. For more information, see Style Configuration.

For the specific style options of a component, see its documentation in the Components directory.

Configures the component's data source. A component can use multiple data sources of different types.

Supported data sources include Device, API, Static Data, and Data Table Resource. For more information, see Device, API, Static Data, and Data Table Resource.

Interaction

Configure actions that are triggered by component events, such as click, double-click, value change, focus, blur, mouse enter, and mouse leave. For example, you can configure a click event to send a server-side request. For more information, see Interaction Configuration.

Top action bar

The top action bar in the web application editor provides buttons for project navigation, page management, undo, redo, preview, and publish.

The following table describes the features of the top action bar, from left to right.

Item

Description

导航

Hover over this icon to expand the project overview. Here, you can view and manage applications, products, and devices within the project.

  • Click View All Projects to go to the IoT Studio Project Management page.

  • Click View All to go to the details page of the project that contains the current application.

To the right of the icon, the current project and application are displayed as Project Name-Application Name.

Auto-saved

Displays the time when the application configuration was last auto-saved.

撤销

Undoes the last action.

恢复

Redoes an undone action.

预览

Previews the application at any time during the editing process.

保存

Manually saves the current configuration. The system also saves automatically every minute.

发布

Publishes the application to the cloud.

工单

Opens a menu to view My Tickets or Create Ticket.

帮助

Opens the help documentation for visual application development.