ContextMenu

1 view
Skip to first unread message

Lukas Renggli

unread,
Jun 13, 2008, 2:03:42 AM6/13/08
to LivePipe UI Users
Excellent library, I am underway to build bindings to Seaside (http://
seaside.st).

One problem I faced is that Control.ContextMenu.addItem is not
returning this, what makes it much more difficult for me to generate
the JavaScript code automatically. I think as with most Prototype
code, functions should be chain-able. I guess this is probably just a
slip.

Btw, I tried to report this problem on the bug-tracker, but I can't
log in.

Cheers,
Lukas

Ryan Johnson

unread,
Jun 13, 2008, 2:47:08 PM6/13/08
to livepipe...@googlegroups.com
Bug tracker is now public. Please post when you publish your bindings!

I've updated addItem() so it is now chainable. Right now virtually no methods are chainable, are there other controls/methods you would like to see this in?

Lukas Renggli

unread,
Jun 15, 2008, 12:01:19 PM6/15/08
to LivePipe UI Users

> Bug tracker is now public. Please post when you publish your bindings!
> I've updated addItem() so it is now chainable.

Thank you for the quick fix!

So far, I have working bindings for Tabs and Menus only.

> Right now virtually no
> methods are chainable, are there other controls/methods you would like to
> see this in?

Actually I would prefer if all documented methods (= public methods)
that currently return 'null', would return 'this' instead. I think
enabling changing was a nice design-choice of the Prototype library. I
would love to be able to write (and generate) something along the
following lines with LivePipe UI:

new Control.Tabs('container').addTab('tab1').addTab('tab2').last()

Having no chaining is not a show stopper for me, but it would
certainly make my life easier.

Keep up the good work.

Cheers,
Lukas
Reply all
Reply to author
Forward
0 new messages