|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: progressive table problem with cell eventsOn Tue, Jun 30, 2009 at 8:20 AM, <monika.falk@...> wrote:
Yes it can be done. When you're working with cell renderers, though, you're working at a very low level. Instead of overriding the _identifyImage method as you'd do if you were extending the Boolean cell renderer, you will extend the Html cell renderer and override the _getCellExtras() method. If you look at the Html cell renderer, you'll see that it does nothing other than extend the Abstract cell renderer. Looking at the Abstract cell renderer, you'll see that it simply creates a div using any style that had been specified by the _getCellStyle() method, and with any extra attributes as provided by the _getCellExtras() method. (Don't be afraid to look at the source of these classes! That's the very best way to learn what's going on and how you can best make use of them.) When you override the _getCellExtras method, you'll need to catch the DOM's double-click event, in a fashion similar to how the Boolean cell renderer adds an "onclick" event. Since you are extending qooxdoo's functionality here, you need to get your hands dirty; you don't get the benefit of the clean-room (no interaction with the DOM) that ordinary usage of qooxdoo provides. :-) Derrell
-- The trick to education is to teach people in such a way that they don't realize they're learning until it's too late. - Harold Eugene "Doc" Edgerton ("Poppa Flash"), 1903-1990, fabled MIT professor and inventor of the stroboscopic flash ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |