- 注册时间
- 2012-6-21
- 最后登录
- 2012-6-21
- 阅读权限
- 10
- 积分
- 14
- 精华
- 0
- 帖子
- 5
|
本帖最后由 wukeyuan 于 2012-6-21 10:35 编辑
这样的<input id="pid" name="pid" class="mini-treeselect" textField="text" valueField="id" required="true"/>
var t = mini.get("pid");
t.data.addRange([
{id: "base", text: "Base", expanded: false,
children: [
{id: "ajax", text: "Ajax"},
{id: "json", text: "JSON"},
{id: "date", text: "Date"},
{id: "control", text: "Control"},
{id: "messagebox", text: "MessageBox"},
{id: "window", text: "Window"}
]
},
{id: "forms", text: "Forms", expanded: false,
children: [
{id: "button", text: "Button"},
{id: "listbox", text: "ListBox"},
{id: "checkboxlist", text: "CheckBoxList"},
{id: "radiolist", text: "RadioList"},
{id: "calendar", text: "Calendar"},
{id: "textbox", text: "TextBox"},
{id: "password", text: "Password"},
{id: "textarea", text: "TextArea"},
{id: "combobox", text: "ComboBox"},
{id: "datepicker", text: "DatePicker"},
{id: "spinner", text: "Spinner"},
{id: "treeselect", text: "TreeSelect"},
{id: "fileupload", text: "FileUpload"}
]
},
{id: "lists", text: "Lists", expanded: false,
children: [
{id: "datagrid", text: "DataGrid"},
{id: "tree", text: "Tree"},
{id: "treegrid", text: "TreeGrid "}
]
},
{id: "layouts", text: "Layouts", expanded: false,
children: [
{id: "panel", text: "Panel"},
{id: "splitter", text: "Splitter"},
{id: "layout", text: "Layout "}
]
},
{id: "navigations", text: "Navigations", expanded: false,
children: [
{id: "pager", text: "Pager"},
{id: "tabs", text: "Tabs"},
{id: "outlookbar", text: "OutlookBar"},
{id: "menu", text: "Menu"}
]
}
]);
怎么显示的列表不是树呢?还是用法不对吗?
|
|