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.
我已经成功实现了 FuelUx 树控件,但我希望用户单击不同的状态复选标记(IE 活动或存档)并仅显示树中包含所选状态的子项。
有关如何实现此功能的任何建议?
谢谢,格雷格
我的第一个倾向是向数据源attr.cssClass键添加一个活动/非活动/存档/任何类。
attr.cssClass
http://getfuelux.com/javascript.html#tree-usage-datasource
这将允许您切换在给定时间显示的项目状态。您还可以使用连接到类的样式来根据状态自定义图标。