12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Navigation <strong>Components</strong>AttributelinkResourceonclickDescriptionName of a Caché resource. The user must have privileges to access this resource or thismenu item becomes disabled. If you are not familiar with Caché resources, see the “Assetsand Resources” chapter in the Caché Security Administration Guide.Client-side JavaScript expression that <strong>Zen</strong> invokes when the user clicks on the menu item.Generally this expression invokes a client-side JavaScript method. This method becomesthe “onclick handler” for the menu item.If onclick is specified, link is ignored. If onclick is not specified, the menu item displays thecontent specified by link.When providing a value for an event handler attribute such as onclick, use double quotes toenclose the value and single quotes (if needed) within the JavaScript expression. Forexample:The JavaScript expression may contain <strong>Zen</strong> #()# runtime expressions.targetString that controls where the new document will be displayed when the user clicks on amenu item. In HTML, this is typically the name of a frame; however HTML also defines thefollowing special values, which you can assign to the target attribute to get the desiredbehavior:• "_blank" — Open the document in a new window• "_parent" — Open the document in the parent window• "_self" — Open the document in the current window• "_top" — Open document link in the topmost window7.2.2 , , and All <strong>Zen</strong> groups that do not have a predefined layout setting have a vertical layout by default. This is true for the component. However, it can be useful to explicitly state the desired layout of the menu group. You can do this by:• Setting a value for the layout attribute (as in the example above)• Choosing one of the following in place of :– — a horizontally oriented list of choices– — a vertically oriented list of choices, , and have the following attributes:Attribute<strong>Zen</strong> groupattributes<strong>Zen</strong> menucell attributesDescriptionA menu has the same style and layout attributes as any <strong>Zen</strong> group. For descriptions, see“Group Layout and Style Attributes” in the “<strong>Zen</strong> Layout” chapter of <strong>Using</strong> <strong>Zen</strong>. However,the layout attribute does not apply to or because these components havelayout set to "horizontal" and "vertical" respectively.A menu may display its caption or image as a choice within a menu cell. For this reason,, , and share several attributes in common with . Fordescriptions, see the section.198 <strong>Using</strong> <strong>Zen</strong> <strong>Components</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!