如何使用UI网格刷新方法? [英] How to use refresh method in ui-grid?

查看:407
本文介绍了如何使用UI网格刷新方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更新我的UI网的知名度columDefs选项。更新后的值,我需要刷新我的UI格。什么是从我的控制器刷新我的网格的方式。

I am trying to update visibility option in the columDefs of my ui-grid. After updating the value I need to refresh my ui-grid. What is the way to refresh my grid from my controller.

谢谢,

推荐答案

请访问此页:<一href=\"http://ui-grid.info/docs/#/api/ui.grid.core.api:PublicApi\">http://ui-grid.info/docs/#/api/ui.grid.core.api:PublicApi

在有你的实例gridApi,您只需调用:

After having instantiated your gridApi, you can just call:

$scope.gridApi.core.refresh();

希望帮助!

这篇关于如何使用UI网格刷新方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆