A method in ExtJS that sets the drop down list box to be non editable

  • 2020-03-30 02:50:00
  • OfStack

ExtJS is a framework that has not been learned or used, but is known as a popular antecedent framework. It is similar to Easy UI,BUI,DWZ and other frameworks, but more powerful than them. The reason for writing this, I think, is very helpful.

Today friends encountered a problem: ExtJS drop-down list of how to set up an editor, is can't edit the HTML, but now the UI framework in the drop-down list box is editable, friend's demand is effect like in HTML, so friends thought of using the editable attributes, but then wrote this attribute to an error, didn't see the error, I find him a property is set to not to edit, but still not make, then at the mistake again, checked the API, finally solved the problem.

The error of reporting is as follows:
< img SRC = "border = 0 / / files.jb51.net/file_images/article/201405/2014050717421612.gif? 201447174232 ">  
If the typeAhead is available, the editable property of the drop-down list box must also be set to true.

The typeAhead is false by default, which seems to be set to true, so the solution is to set both properties to false.

That is:

The typeAhead: false,

The editable: false

Hope to help people in need.

Related articles: