ExtJS Questions et reponses d'entretien
Question 11. What is use of Ext.onReady() function ?
Ext.onReady is probably the first method that you’ll use on every page. This method is automatically called once the DOM is fully loaded, guaranteeing that any page elements that you may want to reference will be available when the script runs.
syntax:
Ext.onReady(function() {
alert(“Congratulations! You have Ext configured correctly!”);
});
Question 12. For example, to show our message when any paragraph in our test page is clicked, what is the ExtJS code on paragraph click?
Ext.onReady(function() {
Ext.select('p').on('click', function() {
alert("You clicked a paragraph");
});
});
or
Ext.onReady(function() {
var paragraphClicked = function() {
alert("You clicked a paragraph");
}
Ext.select('p').on('click', paragraphClicked);
});
Question 13. List out the extjs library files to include in JSP page?
ext-base.js
ext-all-debug.js or ext-all.js
ext-all.css
base.css or examples.css
Question 14. List out the css file required to apply Extjs Theme property?
xtheme-gray.css
ext-all.css
Question 15. What is purpose of MessageBox?
MessageBox is asynchronous.
MessageBox call, which demonstrates the readable message to user.
MessageBox used for multiple purpose like
Ext.Msg.alert()
Ext.Msg.prompt()
Ext.Msg.show({});
Ext.Msg.wait();
Les plus utiles selon les utilisateurs :
- Why did you choose Ext JS?
- Why do we need javascript Library?
- What is syntax for Extjs Button click event?
- How to access DOM element using EXTJS?
- Integration of Web development server-side frameworks with Ext JS?