iJs is one of the many implementations of the GNU Gettext. Here I will show how to integrate it to simple ExtJs application. You can use another implementation of the i18n, the only suggestion I can give you is to use the same service for backend and frontend to avoid problems in the future (DRY).
If you are going to implement localization, internationalization or permissions mechanisms in your RIA, you will have to load the initial data and at the base of this data create appropriate GUI. In this post I will show you how to launch the application after all the global stores are loaded.
Continue reading “Loading the global stores before launching the application.”
In some cases users have to insert special characters, for example polish alphabet contains some extra letters or umlauts of german alphabet or symbols like a celsius sign “°C”. I have developed this functionality in form of plugin. It inserts a trigger to field which popups the panel with special symbols. The plugin is implmented in two files, the plugin and popup window.
Continue reading “Inserting special symbols”
To create updatable data view we can use sample XTemplate mechanisms which are available in the Ext.Component base class. Such a representation maybe useful to give a user preview of an element from the public site, e.g. if you have some product information or advertisement banners which are configured from back office system.
Continue reading “Using XTemplates for presenting custom HTML.”
To cooperate fields in ExtJs we are using ‘Ext.form.FieldSet‘ or ‘Ext.form.FieldContainer‘ but they are not so lightweight as a simple ‘<hr>’ tag which is used as an thematic break element in HTML. Unfortunately this lightweight GUI component is missing in ExtJS.
Continue reading “Form HR component”
To provide quick access to particular functions of applications we can implement so called hot keys. ExtJs provides different mechanisms to achieve this functionality, here I will show you how to use‘Ext.util.KeyMap’ class for these purposes. KeyMap will be initialized in the ViewController but for huge applications you can put it in a separate class. Another question is which element will be attached to the KeyMap: Grid or Toolbar, this decision I will leave up to you.
Continue reading “Hot Keys in ExtJs Application”
Looks like the modern toolkit’s Cell Editing Plugin does not support events as it is designed in the classic toolkit. I have added the missing feature in form of override.
Continue reading “Adding events to CellEditing plugin in modern toolkit.”