ng2-table icon indicating copy to clipboard operation
ng2-table copied to clipboard

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

Open crizstian opened this issue 8 years ago • 1 comments

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>
      `,

crizstian avatar Jul 12 '17 04:07 crizstian

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?

themese avatar Aug 01 '17 15:08 themese