08 Jul

Splitter for MooTools

A while back, I wrote a panel script I called “resizeabletable”. It took a table and made it resizeable, such that you could drag the borders of the table to resize the cells of the table.

I did this to emulate the Splitter capability which is common in a lot of visual languages. For example, there is QT’s splitter, which my new one is based on (the old one had a few architectural faults), and there are others available for Java, wxWindows, and other visual languages.


For now, the splitting is only available horizontally. I’ll add vertical splitting in a while.

The demo’s source is pretty simple, so I won’t bother explaining how to use it.

The source is here. Needs MooTools to work.