Ext quick tip .. Date fields
Category JavaScript Ext
Bookmark :
Ext is great for the level of functionality that you can get with very little effort. I'd been wondering how to apply an Ext date field to a domino field - which by the time it gets to your browser is just a html text input field. A quick read of the Ext API turned this up..
Applying an Ext date field to an existing date field couldn't be easier.
Ext.onReady(function() {
// create a new date field object..
var dtmField = new Ext.form.DateField({
allowBlank: false;
});
// apply it to your field..
dtmField.applyTo( Ext.get('dtmTestInput') );
});
The configuration options are quite extensive - I'll try to put together a Notes database with the relevant libraries and an example. I should say if you want to see Ext working in domino in a very fully featured Ext type way then check out the Ext.nd project (pronounced 'Extend' I think).
Bookmark :
Ext is great for the level of functionality that you can get with very little effort. I'd been wondering how to apply an Ext date field to a domino field - which by the time it gets to your browser is just a html text input field. A quick read of the Ext API turned this up..
Applying an Ext date field to an existing date field couldn't be easier.
Ext.onReady(function() {
// create a new date field object..
var dtmField = new Ext.form.DateField({
allowBlank: false;
});
// apply it to your field..
dtmField.applyTo( Ext.get('dtmTestInput') );
});
The configuration options are quite extensive - I'll try to put together a Notes database with the relevant libraries and an example. I should say if you want to see Ext working in domino in a very fully featured Ext type way then check out the Ext.nd project (pronounced 'Extend' I think).
- 







Comments
Nice to see more people starting to use Ext with Domino
Posted by Rich Waters At 17:52:14 On 24/11/2007 | - Website - |