PDA

View Full Version : Ext.ux.CustomDisclosureText



NetNexus
27 Jan 2011, 7:09 AM
I needed a way to create a custom button as disclosure item in the list component. (Instead of the default arrow-icon)

So i wrote this little plugin, maybe someone else can use this too.

The screenshot in the attachment has some more extra css to make the text look like a button.

Usage is quite simple:



new Ext.List({
itemTpl : '{name:ellipsis(37)}',
grouped : true,
indexBar: false,

plugins: [
new Ext.ux.CustomDisclosureText({
disclosureText: 'Custom text e.g. {name}',
addCls: 'x-button custom-disclosure-btn'
})],
// ...

art.home.ext
27 Feb 2011, 8:22 AM
great !
It would have saved hours spent on it !