contenteditable events

by Ruchika Sharma

HTML

<div class="row pt-2">
        <div class="col-12">
          <table class="table" id="dataTable">
            <thead>
            <tr>
              <th>Id</th>
              <th>Name</th>
             
            </tr>
            </thead>
          </table>
        </div>
      </div>

JavaScript

data= [
    {
      "total_excl_tax": 4697511.12,
      "display_name": "Den Finland Oy",
      "id": 4,
      "is_company": 1,
      "refund_total_excl_tax": -35114.99
    },
    {
      "total_excl_tax": 2365067.4,
      "display_name": "Rakennusliike Lapti Oy",
      "id": 511,
      "is_company": 1,
      "refund_total_excl_tax": -4868.73
    },
    {
      "total_excl_tax": 2342991.69,
      "display_name": "Kastelli-talot Oy",
      "id": 2894,
      "is_company": 1,
      "refund_total_excl_tax": -3027.5
    },
    {
      "total_excl_tax": 24539511.15,
      "display_name": "Others",
      "id": 0,
      "is_company": 0,
      "refund_total_excl_tax": -117113.68
    }
  ]
  
  $('#dataTable').DataTable({
        data: this.data,
        columns: [
          { data: 'id' },
          { data: 'display_name' }
         
        ]
      });