Re: Context menus in XForms

On 3/15/06, David Landwehr <david.landwehr@solidapp.com> wrote:
> I had an interesting chat with Roland Merrick from IBM and he suggested
> the following construction:
> <xf:input>
>   <xf:label>Label</xf:label>
>   <xf:action appearance="context">
>     <xf:trigger>
>       <xf:label>Menu Item 1</xf:label>
>     </xf:trigger>
>     ...
>     <xf:action appearance="context">
>       <xf:label>Sub Menu</xf:label>
>       <xf:trigger>
>         <xf:label>Menu Item 2</xf:label>
>       </xf:trigger>
>   </xf:action>
> </xf:input>
>
> The idea of the appearance="context" is my own, but the idea was that if
> an action block used in this way it would simply be a styling issue
> (which could just as well come from CSS) to show the context menu
> (except that it also has some semantic meaning in the case where it
> should be merged into the parent's context menu).

Hmm, in my world action elements have no visual appearance so it sort
of conflict with my view of things, but I actually like that approach.

--
... Allan

Received on Wednesday, 22 March 2006 08:47:23 UTC