Gridrowbutton
From Plex-XML
The gridrowbutton template is used to define a button/icon at the beginning of a grid row. It must be embedded in the GridRowOnClick template.
Contents |
Element
<gridrowbutton>
Attributes
- image: icon that is shown for the button (should be 16x16px)
- text: Text that should be shown in the cell
- title: Title/hint that is displayed on a mouseover-Event
- minRight: 0-9 value of the minimum right that a user needs for that function to see the button (1=view, 5=update, 8=delete)
Example
gridrowbutton with context menu
<xsl:template name="gridRowOnClick">
<!-- Button to open a request in a new window -->
<gridrowbutton minRight='5' text="Benutzer-Rechte" alt="Benutzer-Rechte" image="security/right.gif">
<xsl:call-template name="onClickNewWindow">
<xsl:with-param name="param">
<formName>UserNrInfo</formName>
<param value="UserId">webFindName</param>
<width>1100</width>
<height>800</height>
</xsl:with-param>
</xsl:call-template>
</gridrowbutton>
<!-- Button with context menu for report selection-->
<gridrowbutton alt="B" text="Stock evaluation" image="pdf.gif">
<onclick>
<contextmenu>
<item title="Bewertungsliste">
<report key="FIREINSURANCE01" title="Bewertungsliste" width="1280" height="1024">
<parameter name="p_identcode" value="{$identcode}" />
</report>
</item>
</contextmenu>
</onclick>
</gridrowbutton>
</xsl:template>