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.
如果您访问 jtable.org 并尝试在演示表上编辑他们的一条记录,您会注意到各种字段类型。有复选框,有下拉菜单。然而,在所有演示和下载的示例中,编辑/创建选项只有文本字段,这对于名称来说很好,但我需要知道如何让它显示选项下拉列表。我怎么做?
在字段中只需添加选项。
options: {'0': 'Enabled', '1': 'Disabled'}