[Kss-devel] Using an ExtJS component
Martin Aspeli
optilude at gmx.net
Fri Sep 21 19:37:45 CEST 2007
Hi guys,
I'm interested in experimenting with this:
http://extjs.com/playpen/ext-2.0-dev5/examples/organizer/organizer.html
Imagine the thing on the right are contents of a folder, and the tree on
the left is the Plone content hierarchy. With simple drag-and-drop, you
can re-organise your content hierarchy pretty effectively.
I could probably just sidestep KSS to use this, bringing in the ExtJS
dependencies in a particular page template and set up the control, but
I'd like to look at whether I can gain more by using KSS more directly.
The ExtJS approach is quite simple. You typically set up some data
structures/options that explain e.g. how to fetch data (using JSON,
typically), what to do on a drop event, what headers and columns you
want and so on. This all goes into an object which ypu then "apply" to a
node (e.g. an empty div) and ExtJS renders the whole widget there.
Here is the code for the example:
http://extjs.com/playpen/ext-2.0-dev5/examples/organizer/organizer.js
Let's forget about i18n and graceful degradation for now on. I'd be
interested to hear how you feel this may be best woven into a Plone (3)
site with KSS taking care of other JS.
Martin
--
Acquisition is a jealous mistress
More information about the Kss-devel
mailing list