无法选择在角JS使用SmartTable电网项目 [英] Unable to select the grid item using SmartTable in Angular JS

查看:148
本文介绍了无法选择在角JS使用SmartTable电网项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用实现电网的 SmartTable 在角JS。根据智能表文档,选择电网项目,我们需要添加 ST-选择行=行。我说这其中也。但我无法选择网格。我在下面网址普拉克实现共享应用。你能请任何机构帮助我工作网格行为的可选并还我想要的,而点击我要打电话有一个<强>功能

I am implemented grid using SmartTable in Angular JS. According to Smart Table doc, for selecting the grid item, we need to add st-select-row="row". I added this one also. But i am unable to select the grid. I am sharing implemented app in below plunk url. Can you pls any body help me to work grid row as selectable and also i want, while clicking on row i want to call one function.

Plunkr这里

推荐答案

您plunker实际工作

Your plunker actually works

选择行智能表添加的属性时, isSlected = TRUE 来关联模型和类的名称 ST-选择来tr元素

when selecting a row smart-table add the property isSlected=true to the associated model and a class name st-selected to the tr element

只需添加一个CSS规则,你就可以看到它

just add a css rule and you'll be able to see it

.st-selected{
  border-left:4px solid black;
}

这篇关于无法选择在角JS使用SmartTable电网项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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