将下拉 angular

编程入门 行业动态 更新时间:2024-10-27 15:30:30
本文介绍了将下拉 angular-strap 与 ng-grid 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-21 06:54:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/998270.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:angular

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!