我在我的angular 4项目中使用了https://github.com/dschnelldavis/angular2-json-schema-form/,它指的是angular js的http://schemaform.io/。我有一个json方案,其中包含type=“数组”的几个对象。lib添加了一个按钮,用于向数组中添加更多对象。默认标题为"Add to {object name}“。我的问题是如何更改按钮的标题,因为它的描述应该是德语的。非常感谢。
发布于 2018-08-09 21:24:03
按照here的说明扩展default Array Widget。
您需要复制原始模板,并将英语按钮描述替换为德语按钮描述:
<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>https://stackoverflow.com/questions/48185963
复制相似问题