Search code examples
angularjssmart-table

Unable to select the grid item using SmartTable in Angular JS


I have implemented grid using SmartTable in Angular JS. According to Smart Table docs, for selecting the grid item, we need to add st-select-row="row". I added this one too. But i am unable to select the grid.

Implemented app can be seen in plunk (url below). Can anybody please help me to use the grid row as selectable. Also, I want to call a function when clicking on row.

Plunkr here


Solution

  • Your plunker actually works

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

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

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