Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
事实证明这比我预期的要难。如果我想要一个只有静态选项(是、否)的单选组,我该如何通过 App Maker UI 进行设置?
大概这应该适合你。在选项绑定中执行以下操作:
['Yes','No']
然后还要确保取消选择“允许为空”设置,以便您唯一的选择是“是”或“否”。或者,如果您的选项小部件链接到数据源字段并且您只希望是或否作为选项,那么在您的模型字段设置中展开“高级”选项并找到您的可能值部分并输入是,然后输入否,然后设置选项绑定到:
@models.YourModel.fields.YourField.PossibleValues