valor-software / ng2-table

Simple table extension with sorting, filtering, paging... for Angular2 apps
http://valor-software.github.io/ng2-table/
MIT License
553 stars 335 forks source link

How can i include a <select> tag inside the table ? #564

Open crizstian opened 7 years ago

crizstian commented 7 years ago

i am including the the html like the following, it shows it, but it doesn't work as expected, can allow me to select a value, how can i achieve this ?

Object.assign({}, item, {
      i: i+1,
      cambiar: `
      <select class="form-control">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
      </select>
      `,
      detalles: `
        <span>
          <button (click)="onClick('viewChannel',${item.id})" class="btn btn-icon btn-sm waves-effect waves-light btn-primary m-b-5">
          <i class="fa fa-eye" aria-hidden="true"></i>
          </button>
        </span>`,
      editar: `
        <span>
          <button (click)="onClick('editChannel',${item.id})" class="btn btn-icon btn-sm waves-effect waves-light btn-primary m-b-5">
            <i class="fa fa-wrench"></i>
          </button>
        </span>
      `,
themese commented 7 years ago

I have been able to create a table with a simple select inside it, can you provide a plnkr or something to replicate the error?