David E Jones wrote:
On Feb 17, 2008, at 10:33 AM, Adrian Crum wrote:
One thing those discreet elements will never do that higher level
widgets can do -change their behavior based upon their contents. The
screenlet's handling of a contained form's pagination menu is an
example of that.
A good example of balance between high/low level might be to have some
more generic pagination widget instead of having to go through the
screenlet widget.
That's a great suggestion! I was thinking along the same lines while I
was working on the screenlet widget.
The problem with the form widget is that it has gotten very monolithic.
The pagination menu code is intertwined with the rest of the code, so
manipulating the pagination menu is impossible. I was thinking at the
time that I'd like to refactor that so that the form widget pagination
is contained in a Menu subwidget - which can be extracted and
manipulated, or replaced.
-Adrian