无法选择在角JS使用SmartTable电网项目 [英] Unable to select the grid item using SmartTable in Angular JS
问题描述
我使用实现电网的 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.
推荐答案
您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屋!