We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如Menu,Dropdown等模块,如果实现因数据变更而重载数据,需要重新初始化该模块时,列表并未重载,但是数据已经获取html已经拼接,并未呈现重载效果。能否解绑该控件或实现初始化该模块?
The text was updated successfully, but these errors were encountered:
com.post(api.domain + '/ui/dashboard.ashx', { method: 'GetList' }, function (res) { _items = $.parseJSON(res.list); menuInit((_items.find(function (a) { return a.selected; })).key); Dropdown({ el: '#systemSwitch', items: _items, onclick: function (item) { menuInit(item.key); } }); }); var menuInit = function (mkid) { com.post(api.domain + '/ui/dashboard.ashx', { method: 'GetList', mkid: mkid }, function (res) { var _list = $.parseJSON(res.list); if (_list.length == 1) { menuClick(_list[0]);//直接加载菜单 } else { Dropdown({ el: '#dashboard', items: _list, onclick: function (item) { menuClick(item); } }); //加载默认选中板块菜单 } }); }
Sorry, something went wrong.
Dropdown新增加了items()实例方法,允许更新/获取当前实例的数据;menu插件我想不到有更新数据的需求啊,目前可以修改当前项,一定要动态更新数据吗?
items()
tower1229
No branches or pull requests
如Menu,Dropdown等模块,如果实现因数据变更而重载数据,需要重新初始化该模块时,列表并未重载,但是数据已经获取html已经拼接,并未呈现重载效果。能否解绑该控件或实现初始化该模块?
The text was updated successfully, but these errors were encountered: