can I change triggers a bit?

Oct 2, 2009 at 2:28 PM
Edited Oct 2, 2009 at 2: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


Oct 2, 2009 at 2: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.



Oct 5, 2009 at 9: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.


Oct 5, 2009 at 7:27 PM

You found a bug :)

Fixed and checked in :)