2009年06月07日 Sunday , 725 次点击

Chapter 14: The Power of Ext JS: What Else Can You Do ?

So much to work with

Form widgets

DateField

xtype: datefield

TimeField

JAVASCRIPT:
  1. {
  2.     xtype:'timefield',
  3.     fieldLabel: 'Time',
  4.     minValue: '9:00 AM',
  5.     maxValue: '6:00 PM',
  6.     increment: 30
  7. }

NumberField

CheckboxGroups and RadioGroups

HtmlEditor

xtype: 'htmleditor'

Data formatting

Basic string formatting

String.format('<div>{0},{1},{2}</div>','content0','content1','content2')

Formatting dates

The Date object has also been extended to have the format() function

Other formattings

JAVASCRIPT:
  1. // To format a number to US currency
  2. Ext.util.Format.usMoney(num)
  3.  
  4. // To strip tags in a string
  5. Ext.util.Format.stripTags(str)
  6.  
  7. // Capitalize
  8. Ext.util.Format.capitalize(str)

Managing application state

Basic 'state'

Ext.state.Manager.setProvider(new Ext.state.CookieProvider())

How do I get that window

Using the back button in Ext JS applications

Use the History class to handle such cases

Accessing the DOM

Finding DOM elements

Manapulating the DOM

Ext.DomHelper

Working with styles

For individual elements, use the applyStyles() method.

To change the stylesheet of our entire document, use Ext.util.CSS package.

Ext JS for the desktop: Adobe AIR

Ext JS community extensions

DatePickerPlus

PowerWizard

TinyMCE

SwfUploadPanel

ColorPicker

Additional resources

Samples and demos

Ext JS API

http://extjs.com/deploy/dev/docs

Ext JS forums

Step-by-step tutorials

Community manual

Spket IDE

Aptana Studio

Google

Summary

Tags :

随机日志

來留言吧!


Please copy the string Sd2zMZ to the field below:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

尚未有留言

尚未有留言

留言板RSS 引用 URI

來留言吧!

«
»