Using Axure RP Prototype design Practice 04, Understanding global Variables

Source: Internet
Author: User

Variables are a variable number that can be thought of as a container for data. Variables have 2 operations, one is read, and the other is write. The global variable of axure means that the variable can be read and written at any time.

Click Global Variables under Toolbar project, where you can set globals.

As you can see, there is already a global variable by default. You can also create a new variable, which can have a default value.

Now customize a global variable.

Drag a rectangle into the page, set the rectangle style, and set it to rack in shape name.

Drag it into a rectangle, set it to a circle and fill it with color, as a button.

Set the use case for the circular rectangle as follows:

Preview, click the blue button to appear the text, as follows:

The above is the reading of the global variable value, how to change the global variable?

Copy the contents of the previous page to another page, overriding the setting onclick event as follows:

Preview, click on the blue button, this time the content of the display is what we set.

The above is to reset and display the value of the variable, whether you can change the value of the variable through the function?

To copy the contents of the previous page to another page, the onclick event of the override button is as follows:

Above, the value of the set variable is calculated by the function.

Preview, click on the blue button, shown below:

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

Reference: http://www.iaxure.com/

Using Axure RP Prototype design Practice 04, Understanding global Variables

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.