admin-on-rest in create form - 如何根据另一个输入值在下拉列表中填充列表
admin-on-rest in create form - How to populate the list in dropdown based on another input value
我在我的项目中使用 admin-on-rest。我面临一种找不到解决方案的情况。有人可以帮助我如何根据创建表单中的另一个输入值填充下拉列表中的列表。 (示例:根据 'Country' 变化填充 'State' 列表)。
这可以使用 aor-dependent-input 来实现。
您可以在这个代码框里找到一个例子:https://codesandbox.io/s/5xwv91v4n4
查找具有 category
和 subcategory
输入的 PostCreate
组件。
我在我的项目中使用 admin-on-rest。我面临一种找不到解决方案的情况。有人可以帮助我如何根据创建表单中的另一个输入值填充下拉列表中的列表。 (示例:根据 'Country' 变化填充 'State' 列表)。
这可以使用 aor-dependent-input 来实现。
您可以在这个代码框里找到一个例子:https://codesandbox.io/s/5xwv91v4n4
查找具有 category
和 subcategory
输入的 PostCreate
组件。