我想重复使用我在ng-admin中创建的几个字段,除了一个特定字段。
我该如何做到这一点?
这是我正在使用的代码:
post.editionView()
.title('Edit post "{{ entry.values.title }}"') // title() accepts a template string, which has access to the entry
.actions(['list', 'show', 'delete']) // choose which buttons appear in the top action bar. Show is disabled by default
.fields([
post.creationView().fields(), //<--- I'd like to remove one field from here
谢谢,
您可以通过将字段传递到EditionView
来做到这一点currentInventoryItem.editionView()
.title('Update Inventory Items')
.fields(
nga.field('consume'),
nga.field('add'),
nga.field('price')
)