Basic code model and process parsing of ExtJs event mechanism _ extjs

Source: Internet
Author: User
Recently, I started to learn ExtJs by myself. I downloaded some videos and searched some related articles and documents on the Internet to prepare for learning. The first time I came into contact with the ExtJs event mechanism this evening, I felt a little dizzy at first, it is somewhat different from the previous implementation of VB or pure JAVASCRIPT. Let's analyze and summarize the process based on an example. Code implementation: triggers an event when a property of a custom class is used.
Effect of the program: Click the enter button to bring up a script prompt text box asking the user to enter his name. After confirmation, the user's input name will be displayed in the name text box on the page, in addition, the page title becomes the same as the name. Then, a script is displayed, prompting the user to enter a gender. after entering the information and clicking OK, the Gender entered by the user will be displayed in the Gender text box on the page.

The Code is as follows:







Event

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.