In general, I’m ashamed to ask such a question, but I still have to, since I couldn’t find out by my own efforts. There is a code on extJS:

Ext.MessageBox.show({ title: "Сохранение", msg: "Имеются изменения. Сохранить?", buttons: Ext.Msg.YESNOCANCEL, icon: Ext.Msg.QUESTION }) 

I look at the documentation , look for the show method in the search bar: Yes, I find it - there is one, I find out what it does and how. Looking further title and battons - I find everything is in order. But I never found the msg and icon ... This is despite the fact that the code is normally executed and both the message and the icon are displayed.

Actually, I encounter such a phenomenon very often, and this makes it difficult to study the framework. In this connection, the question: Where did I miss that? Maybe there are some common configs for all objects, methods, events, etc. ??

    4 answers 4

    The easiest way to explore extJs is to open the src subfolder in the fremworka folder where you need the component or class and see js-ku. Studying them provides comprehensive answers to all questions. Only sometimes you have to rewrite a bunch of their code, for that much + you can see how everything is implemented IMHO

    • Yes, I, too, am now inclined to this option. Although it is not the fastest and easiest. - co11ter

    Follow this link. There is a living example of changing icons. Hope to help.

    • Thanks for the help, but I'm not talking about the icon. I in examples from the Internet often see opportunities that I can not find in the documentation. I thought at the docks comprehensive information about this. The conclusion suggests itself: either it is not exhaustive, or I don’t know how to search, or I don’t understand something. That's how I could know that the show method in this case supports the msg config? - co11ter

    Msg is an alias - short name. It is mentioned at the very beginning in the Ext.MessageBox documentation:

    Utility class for generating different styles of message boxes. The alias Ext.Msg can also be used.

    The description of icon is in the description of the show method of the same Ext.MessageBox.

    • I did not find it ... In general, I need to find out all the parameters that I can specify for the show method of the ExtMsg object. What do you need to do for this? Just get into the code, as @ilyas suggests? - co11ter
    • one
      Here is a link to the description of the show () method: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.MessageBox-method-show See section Parameters - mantigatos

    In Ext JS 4.2, in the official help, we do a search for "MessageBox", the first line will be the help for Ext.MessageBox - this is what we need.

    http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.MessageBox

    There is a Methods section, we find the show method in it. It will contain a description of all parameters, including your msg, icon, and so on:

    msg: String A XHTML-compliant non-breaking space character message box

    icon: String A CSS for the dialog. One can use a predefined icon class:

    Ext.MessageBox.INFO Ext.MessageBox.WARNING Ext.MessageBox.QUESTION Ext.MessageBox.ERROR

    As for the understanding of Ext JS, there is a sufficient amount of Russian-language documentation in runet. The most recent is the translation of the official documentation of Ext JS 4.2 .