Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

RichSharpe opened this issue Aug 5, 2015 · 0 comments
Assignees
Milestone

Comments

@RichSharpe
Copy link

@RichSharpe RichSharpe commented Aug 5, 2015

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 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants