4
A
回答
0
我一直无法弄清楚如何通过将headerTooltips设置为字符串来使指令正常工作。指令开发人员正在使用与您在此Plunker中可以看到的不同实现。
该解决方案将修补问题,直至找到更好或更永久的问题。将它置于控制器内部的服务呼叫的末尾,如下所示。
upareneStavkePromise.then(function(upareneStavkeData){
$log.debug(upareneStavkeData);
$scope.ucitaniUpareniPodaci = true;
$scope.gridOptionsUpareniPodaci.data = upareneStavkeData.grupe;
upareneStavkeTotals = upareneStavkeData.totals;
/*
* Patch for possible bug:
* Description: Setting headerTooltip property
* value as a string doesn't render the value at
* runtime.
*
*/
//class for the header span element
var headerClass = ".ui-grid-header-cell-primary-focus";
//the column definitions that were set by the developer
var colDefs = $scope.gridOptionsUpareniPodaci.columnDefs;
//Get the NodeList of the headerClass elements.
//It will be an array like structure.
var headers = document.querySelectorAll(headerClass);
//loop through the headers
angular.forEach(headers,function(value,key){//begin forEach
//Set the title atribute of the headerClass element to
//the value of the headerTooltip property set in the columnDefs
//array of objects.
headers[key].title = colDefs[key].headerTooltip;
});//end forEach
/****************END PATCH********************/
});
+0
我会检查它。与此同时,你的链接链接是空的。 – gandra404
+0
我会修复,当我有机会谢谢你 –
相关问题
- 1. Kendo UI中的网格列名称的工具提示Angular 2
- 2. 剑道UI - 工具提示在网格
- 3. 引导工具提示不起作用?
- 4. Jquery UI - 工具提示不起作用(显示空白)
- 5. Kendo UI网格示例不起作用
- 6. jquery ui工具提示不工作
- 7. Angular-UI工具提示按键事件?
- 8. 带有HTML的Angular-ui工具提示
- 9. 不显示角ui网格工具提示
- 10. jquery ui工具提示项选项不起作用
- 11. jquery ui工具提示定位不起作用
- 12. ui日历工具提示功能不起作用
- 13. 引导工具提示不起作用
- 14. Qtip工具提示不起作用
- 15. Telerik RadChart工具提示不起作用
- 16. rich:工具提示不起作用rich:popupPanel
- 17. jQuery工具提示不起作用
- 18. 工具提示代码不起作用
- 19. jqvmap工具提示不起作用
- 20. 引导工具提示不起作用
- 21. 动态工具提示不起作用
- 22. Bootstrap 3.3.4工具提示不起作用
- 23. 工具提示在`angular-ui-grid`中无法正常工作
- 24. angular-ui-router不起作用
- 25. 获取Angular UI网格与需求JS一起工作
- 26. css工具提示提示 - 顶部不起作用
- 27. Kendo UI JSONP网格不起作用
- 28. 工具提示不工作
- 29. UI的引导提示不起作用
- 30. 如何在kendo ui网格上添加多个工具提示。
API说headerTooltip是一个布尔值,但他们的例子说这是你想要显示的字符串。 http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions.columnDef vs http://ui-grid.info/docs/#/tutorial/117_tooltips - 所以是的,好问题! –
我现在可以使用下面的解决方案修补它,希望它现在可以帮到你。 –
我修复了Plunker链接对此感到抱歉。 –