3

I'm using https://github.com/dschnelldavis/angular2-json-schema-form/ in my angular 4 project which refers to the http://schemaform.io/ for angular js. I have a JSON scheme which contains several objects of type="array". The lib adds a button to add more objects to the array. The default title is "Add to {object name}".

My question is how can I change the title of the button because the description should be in German. Thank you very much.

0

1 Answer 1

0

Extend the default Array Widget as described here.

You will need to copy the original template and replace the English button descriptions with German ones:

<button (click)="removeItem(i)" class="btn btn-default array-remove-button">
    <span class="glyphicon glyphicon-minus" aria-hidden="true"></span> ---> Remove <---
</button>
</div>
<button (click)="addItem()" class="btn btn-default array-add-button">
    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> ---> Add <---
</button>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.