Use Axure RP prototype design practices 04 to understand global variables and axurerp

Source: Internet
Author: User

Use Axure RP prototype design practices 04 to understand global variables and axurerp

 

A variable is a variable number and can be considered as a data container. A variable has two operations: read and write. Axure's global variable refers to the ability to read and write this variable at any time.

 

Click Global Variables under Project in the toolbar. You can set Global Variables here.

 

You can see that there is a global variable by default. You can also create new variables with default values.

 

Now you can customize a global variable.

 

Drag a Rectangle to the page, set the Rectangle style, and set it to rack in the Shape Name.

 

Drag a Rectangle, set it to a circle, and fill the color with it as a button.

 

Use Cases for Rectangle of the circle:

 

Preview. Click the blue button to display the text, as shown below:

 

The above is the reading of the global variable value. How can I change the global variable?

 

Copy the page content to another page. Rewrite the OnClick event as follows:

 

Preview and click the blue button. The content displayed this time is the content we set.

 

The above is to reset and display the value of the variable. Can I change the value of the variable through the function?

 

Copy the page content to another page. The OnClick event of the rewrite button is as follows:

 

Above, set the variable value through function compute.

 

Preview. Click the blue button, as shown below:

 

Summary: global variables can be read at any time, and the value of global variables can be changed through direct assignment or function assignment.

 

References: http://www.iaxure.com/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.