What is the difference (if any) between a standard document object and an extjs object? I mean this:
Is there a difference between
<input type = "button">
and new Ext.Button()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, there’s a difference. The HTML
<input>element creates a node in the document’s DOM tree, which is accessible in JavaScript using DOM methods. TheExt.Button()constructor creates an ordinary JavaScript object, not a DOM object, but it knows how to create the DOM object when ExtJS asks it to render itself.Basically, ExtJS components are wrappers around (possibly multiple) DOM objects, and have a higher-level API compared to working with the DOM tree directly.