Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
The ice:dataExporter component should give the user the option of rendering a button. The current component will let you either render a link or an image file.
Add a new attribute, "renderLabelAsButton", boolean, default=false. When renderLabelAsButton=true the label text will be the label of a commandButton, instead of an anchor link.
The order of precedence is important here and should be documented in the TLD description for the component:
1. If image URL is specified, the label text will become the alt text for the image, the image is a clickable anchor to trigger the export operation. This supercedes the following two configurations.
2. If renderLabelAsButton=true, the label text will used for a commandButton that will trigger the export operation.
3. (default) The label text is rendered as an anchor which, when clicked, will trigger the export operation.