Button
From Plex-XML
The button template is used to define button.
Contents |
Properties
Attributes
- type
- smallbutton: small button with an image (just like the toolbar buttons)
- button: real button with background image text and icon in a
- largebutton: image with a text behind but without background image
- postFieldImage: image behind a field like the calendar function behind date fields
- separator: separator between small buttons (used for the toolbar)
- msgbox: box for messages that could be used in the toolbar
- otherTemplate: could be used to apply other templates like an ajax-combo in the toolbar
- 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)
- mainButton='false: Uses normal instead of bold font for the button. Should be used for the not default button on a page.
- image: image for the button (images/ at the beginning of the path is added by default)
- text: text
- id: id
- onclick: javascript "onclick" action
<button-group>
Could be used to group two or more buttons in a row.
<xsl:template name="FormAction"> <button-group style="margin:15px;"> <button text="Move Rate" type="button" image="move.gif"> <onclick> ... </onclick> </button> <button type="separator"/> <button text="{$t_Cancel}" type="button" image="close.gif" mainButton='false'> <onclick> <close /> </onclick> </button> </button-group> </xsl:template>
<button-group/> and type="button" example
Example
type="largebutton" after a field.
<xsl:template name="postFieldException"> <xsl:choose> <xsl:when test="@implname='wrkSubscriptionLink'"> <button type="largebutton" text="{$vSubscription}" alt="{$vSubscription}" image="activity/message.gif" id="ActSubscriptOne"> <xsl:call-template name="onClickNewWindow"> <xsl:with-param name="param"> <formName>ActSubscriptOne</formName> <param value="{$vActID}">IdentifierActivityMain</param> <realWin>false</realWin> <options>{modal:true}</options> <width>650</width> <height>300</height> </xsl:with-param> </xsl:call-template> </button> </xsl:when> </xsl:choose> ...
Drop-Down Context-Menu<button text="Report" alt="Report" image="view.gif"> <onclick> <contextmenu> <item title="{$t_GENERALINFO}"> <report key="GENERALINFO" title="{$t_GENERALINFO}" width="900" height="700"> <parameter name="p_p_GGFirma" value="{$vGG_Firma}"/> <parameter name="p_p_GGKontoNr" value="{$vGG_Konto_Nr}"/> </report> </item> ... </contextmenu> </onclick>
</ button>

