Readonly configuration item in ext3.x

Source: Internet
Author: User

My contactsEXTIt started with version 2.0 and started a mobile project in a company.EXTMost of the Code is tagged, and I am not used to it at first, but now I think it is indeed very powerful.

This period of time has been studying 3. in Version X, I admit that I was attracted by its new features. Of course, it attracted me not only these new features, but also improved and improved performance and execution efficiency.

However, I encountered a tricky problem yesterday. In version 2.0, the two components datefield and ComboBox have a configuration item called readonly, which is set to true, you can only select the values of datefield and ComboBox, but cannot manually enter them to avoid illegal data input.

3. if you set readonly: true when you set X, it seems that the effect is not so satisfactory. At this time, the user cannot enter it, but the date icon after datefield and the drop-down icon after ComboBox, and does not exist at the same time. At first, I thought that my code could be accidentally changed. So I downloaded the latest source code from the official website, but the result was the same. Of course, I also thought about whether this configuration item will be replaced by other properties in 3.x, but it is not true becauseEXTIt pays more attention to the compatibility of earlier versions. For example, although simplestore is abandoned in 3.x, in order to maintain compatibility with earlier versions, it is still used in the source code.EXT. Data. simplestore =EXT. Data. arraystore; in this case, why is this happening in readonly? View the API, the meaning described in the API also indicates that only the form element is disabled, so I started to think this is a bug in 3.x.

Later, I found another configuration item in the API: editable. After the application is set to false, the expected effect is achieved. In 3.x, it was replaced by editable. What is the difference between readonly and disabled?

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.