将下拉 angular-strap 与 ng-grid 集成 [英] Integrate dropdown angular-strap with ng-grid

查看:23
本文介绍了将下拉 angular-strap 与 ng-grid 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将单元格模板化为下拉按钮.因此,我创建了一个带有链接到下拉指令的按钮的单元格模板.如果我在网格外创建此按钮,它会起作用,但在网格内则不起作用.我不确定,但我猜 $scope 在模板中不可访问.

I want to template a cell as a dropdown button. So I created a cell template with a button linked to the dropdown directive. If I create this button outside the grid, it's working but inside the grid it's not. I am not sure but I guess the $scope is not accessible in the template.

我创建了一个显示问题的 Plunker

I created a Plunker that shows the issue

推荐答案

对我来说这看起来像是一个错误.问题与 .ngCell 的 CSS 相关.当前 overflow 属性设置为 hidden.尝试将此添加到您的 css 文件以覆盖该属性

It looks like a bug to me. The problem is relating to the CSS of .ngCell. Currently the overflow property is set to hidden. Try add this to your css file to overwrite the property

.ngCell {
    overflow: visible;
}

这篇关于将下拉 angular-strap 与 ng-grid 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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