can I change triggers a bit?

Oct 2, 2009 at 1:28 PM
Edited Oct 2, 2009 at 1:28 PM

Very nice project.

Is it possible to have <a href=...> instead of <input type=button...> for triggers?

And can Add Order/Add product/... buttons be after list of Orders/Products?

tnx for help

gg

Coordinator
Oct 2, 2009 at 1:54 PM

To display triggers as a link, you just have to apply a UI appearance hint, eg:

<%= orders.Trigger("Del").Appearance(Appearance.Minimal).Label("Delete Order").Delete()%>

If you want more custom formatting, MVC XForms is pretty extensible, you can override formatting of any controls you like. I'm planning a rewrite of the formatting mechanism so its possible to override at many levels.

You can move the triggers around to anywhere you like. If they are inside a repeat, you don't need to specify a nodeset.

Cheers,

Jon

Oct 5, 2009 at 8:03 AM

Tnx, but now hrefattribute is "AddOrder" so it goes there (and fails: 404 :)). I tried adding .Action(XFormEvent.DOMActivate, "return false;") but than new Order isn't added.

gg

Coordinator
Oct 5, 2009 at 6:27 PM

You found a bug :)


Fixed and checked in :)