Wouldn’t it be nice to use a combo box of flag images to select the country code of phone numbers? If you use a country selection component that’s quite easy. Just wrap it in a re-usable component together with a textfield for the local number and the result looks like this: And here’s the example’s [...]
Phone number selector in ExtJS
April 8th, 2009 · No Comments
Topics: · code, country, ext, ExtJS, field, number, phone, selector
Country selector with flag images in ExtJS
April 1st, 2009 · 2 Comments
Based on the ExtJS-Tutorial on how to build a combo box with an icon, I built a component that can be used as a country selector in ExtJS. Here you can find the code of the component: Ext.ns(’Extreme.components’); Extreme.components.CountryCombo = Ext.extend(Ext.form.ComboBox, { constructor: function(config){ var data; if (config.phoneLabels) { data = [[’+49′, ‘+49′, ‘ux-flag-de’], [...]