.extensive-info-text {
color: gray;
font-style: italic;
}
Now that with Ext Core a light-weight version (just 25kB) of ExtJS has been released, I thought it’s time to build a nice example with it.
The result is [...]
.extensive-info-text {
color: gray;
font-style: italic;
}
Now that with Ext Core a light-weight version (just 25kB) of ExtJS has been released, I thought it’s time to build a nice example with it.
The result is [...]
Topics: · core, ext, ExtJS, field, focus, html, info, input, lost, text
I just had the requirement to mark required fields in a ExtJS form. I started with the code from Jason (Thanks!) and extended it a bit.
Now you may customize how the field marker would look like by assigning a CSS class to a requiredFieldCls property. I also added a descriptive tooltip for the marker – [...]
Topics: · ext, ExtJS, field, form, required
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:
iconcombo1countrycombo1phonefieldphonefield1
And here’s the example’s source:
Ext.onReady(function(){
[...]
Topics: · code, country, ext, ExtJS, field, number, phone, selector
Ext already provides a component to select multiple items. The thing I do not like about it is that it covers too much space on the screen.
Therefore I thought of a component that initially looks like a combo box and then opens a new window to let the user select the items.
As a nice example [...]
Topics: · combo, Component, ext, items, multiple, select, selector
Actually it is pretty easy to get the values of all fields of a form in Ext: You just have to call the getValues() method of the BasicForm.
The problem with that approach is that it just takes the values directly from the DOM and is not calling the getValue() for each field (Which I assumed). [...]