Skip to content

Commit

Permalink
Add the target binding from ERAttachmentLink into ERAttachmentIcon
Browse files Browse the repository at this point in the history
The target binding can be specified in the ERAttachmentIcon
component to define where to open the linked attachment.
  • Loading branch information
hprange committed May 11, 2013
1 parent 9517253 commit 00b9584
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<unbound name="attachment"/>
</validation>
<binding name="size"/>
<binding name="target"/>
</wo>
</wodefinitions>
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ Link : ERAttachmentLink {
class = ^class;
style = ^style;
configurationName = ^configurationName;
target = ^target;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @binding size the icon size - 16, 32, or 64
* @binding attachment the attachment to display
* @binding configurationName (optional) the configuration name for this attachment (see top level documentation)
* @binding target (optional) specifies where to open the linked attachment
*/
public class ERAttachmentIcon extends ERXStatelessComponent {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* @binding id (optional) the html element id
* @binding style (optional) the css inline style
* @binding download if true, the attachment will be downloaded instead of inlined
* @binding target (optional) specifies where to open the linked attachment
*/
public class ERAttachmentLink extends WODynamicGroup {
private WOAssociation _attachment;
Expand Down

0 comments on commit 00b9584

Please sign in to comment.