Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何确定ng网格单元是否使用省略号_Angularjs_Ng Grid - Fatal编程技术网

Angularjs 如何确定ng网格单元是否使用省略号

Angularjs 如何确定ng网格单元是否使用省略号,angularjs,ng-grid,Angularjs,Ng Grid,在ng grid css文件中有一个css元素,如下所示 .ngCellText { padding: 5px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; white-space: nowrap; -ms-text-overflow: ellipsis; -o-text-overflow: ellipsis; text-overflow:

在ng grid css文件中有一个css元素,如下所示

.ngCellText {
  padding: 5px;
 -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  white-space: nowrap;
  -ms-text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;

基本上,当单元格文本内容超过限制时,它会添加一个省略号。您如何在代码中确定某个单元格何时使用省略号并据此采取行动?

您的建议与我的问题有何关联。谢谢,但我的问题是关于ng网格和使用省略号。表面上可能是关于ng网格和使用省略号。它真正要做的是弄清楚文本溢出的css规则何时应用于元素。(例如,当文本宽度对于容器来说太宽时)感谢您,但希望知道确切的答案