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.

<strong>Zen</strong> and SVGAttribute<strong>Zen</strong> componentattributesDescription has the same general-purpose attributes as any <strong>Zen</strong> component. Fordescriptions, see these sections:• “Behavior” in the “<strong>Zen</strong> Component Concepts” chapter of <strong>Using</strong> <strong>Zen</strong>• “Component Style Attributes” in the “<strong>Zen</strong> Style” chapter of <strong>Using</strong> <strong>Zen</strong>backgroundStyleSVG CSS style definition (Styles within SVG are CSS compliant, but there is a differentset of styles available.) Specifies the background style for the frame. This style mustinclude a fill value, or mouse events within this frame will not work correctly. The defaultbackgroundStyle is:"fill: white;"disableddragCanvaseditModeIf true, this frame and its children are disabled. The default is false.This attribute has the underlying data type %ZEN.Datatype.boolean. It has the value "true"or "false" in XData Contents, 1 or 0 in server-side code, true or false in client-side code.If true, the user can use the pointing device (mouse) to drag the canvas of this frame.This updates the values of the offsetX and offsetY attributes and moves the shapes onthe canvas. The default is false.This attribute has the underlying data type %ZEN.Datatype.boolean. It has the value "true"or "false" in XData Contents, 1 or 0 in server-side code, true or false in client-side code.Edit mode for this frame. Possible values are:• "none" — The user cannot edit the contents of this frame. This is the default.• "select" — The user can click on an SVG component to select it.• "drag" — The user can click on an SVG component, hold down the mouse button,and drag the SVG component to a new position.frameStyleCSS style definition that applies to this frame. For example, to produce the recessed,beveled border shown in the illustration above, you would use:frameStyle="border-style: inset;"gridXgridYIf snapToGrid is true, gridX defines the HTML width of each cell in the sizing grid. Thedefault is 25.If snapToGrid is true, gridY defines the HTML height of each cell in the sizing grid. Thedefault is 25.34 <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!