Richard E. Flower wrote:
Keith,
Do you mind me asking what sort of method(s) you used to do the
styling of the form that you were
showing in this older email thread? Some of what you show is pretty
much what I'm looking to do
but I'm totally lost on how to get it going.. Many thanks in advance
for any pointers you can provide..!
-- Rick
Basic packages which you may or may not want to use...
Installer lukas project: 'magritteaddons';
install: 'Magritte-RealMemento';
install: 'Magritte-CustomBuilder';
install: 'Magritte-Scriptaculous.
Magritte-RealMemento package uses a real copy of the object as a
memento, rather than a dictionary of key value pairs. The real object
has behaviour which may relate data items. To use the real memento you
have to override #mementoClass for your model.
"Magritte-CustomBuilder" sets the default builder to use a numeric in
the description selector to set the priority, like so. (I find this very
useful)
description0250Documents
^ MAToManyRelationDescription new
classes: (Array with: DTIExternalFileModel);
"Magritte-Scriptaculous extends the accessors so you can do
things like this...
Where the visibility of this item is determined by
#hasOrderNumber."
accessor: (#documents asAccessor visible: #hasOrderNumber);
componentClass: MAOneToManyDocumentsComponent;
label: 'Documents';
yourself
Accessors augmented in this manner can provide #readonly #visible
#cssClasses #tooltip and #options (for lists)
For rendering, lukas has his MACssRenderer, and I have my MADivsRenderer
(part of Magritte-Scriptaculous).
There is also Magritte-ComponentDecoration another add on that you might
find useful.
best regards
Keith