Add ability to edit "Add" label in Flat/Accordion View #353

Closed
RichSharpe opened this Issue Aug 5, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@RichSharpe

Rather than static text for the 'new' form button at the top of a FlatView or Accordion. Can we have a property that allows the developer to set this?
I've edited line 68 in UnpFlatView (local version) with the following code:

<i class="fa fa-plus"></i>
<xp:label id="label2">
<xp:this.value><![CDATA[#{javascript:if(compositeData.newFormLabel == "" || compositeData.newFormLabel == null){
return "Add";
}else{
return compositeData.newFormLabel;
}}]]></xp:this.value>
</xp:label> 

@whitemx whitemx added the enhancement label Oct 15, 2015

@whitemx whitemx added this to the 1.5.2 milestone Oct 15, 2015

@whitemx whitemx self-assigned this Oct 15, 2015

@whitemx whitemx closed this in 20391d9 Oct 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment