问题描述
限时送ChatGPT账号..我想将单元格模板化为下拉按钮.因此,我创建了一个带有链接到下拉指令的按钮的单元格模板.如果我在网格外创建此按钮,它会起作用,但在网格内则不起作用.我不确定,但我猜 $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屋!
更多推荐
[db:关键词]
发布评论