[Solar-talk] YUI: first helpers set
Rodrigo Moraes
rodrigo.moraes at gmail.com
Sat Dec 9 20:16:35 PST 2006
Hi,
I've commited today the first set of YUI helpers: Module, Overlay,
Panel, Dialog and SimpleDialog. They create widgets based on YUI's
container library:
http://developer.yahoo.com/yui/examples/container/
The helpers can build both javascript and markup, but the containers
can also be added to DOM or you can build them yourself in the
template and use the helper to generate the javascript for them.
However it is handy to let the helper append them to the page, because
they follow a standard format anyway and to create both javascript and
markup you just need one line:
$this->jsYui()->panel->add('my_panel', $config, $content);
If you are interested in YUI, have fun with the helpers and let me
know if you have doubts, suggestions or want to contribute with more
classes for the JsYui family. The collection will grow in the next
days (event, connection - or 'ajax' - and animation are the next
ones). One sad note is that I had to fork the default Js helper
because it uses code specific from Prototype. I hope this problem will
be considered.
The first set of YUI helpers can be browsed here:
http://dev.tipos.org/browser/trunk/incubator/Tipos/View/Helper
Or you can check out the helper directory using Subversion:
http://svn.tipos.org/tipos/trunk/incubator/Tipos/View/Helper
cheers,
rodrigo
---------------------------------------------------------------------
Solar has now a Community Wiki: solarphp.org
---------------------------------------------------------------------
Join the #solarphp IRC channel on freenode.org
---------------------------------------------------------------------
More information about the solar-talk
mailing list