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.
给定一个分组ui-grid,我如何以编程方式获取计数(以括号显示并在屏幕截图中突出显示)?
ui-grid
这里的最终目标是添加一个(自定义)菜单项,该菜单项按组数对列进行排序。
除非这里有人可以通过 ui-grid API 直接找到方法,否则我建议您在用于构建网格的 json 上简单地执行 lodash _.groupBy 。如果你需要帮助,请告诉我,我会扩展它。