vendredi 21 décembre 2018

child rows problems - typescript

Im trying to display a Plus sign to show some child nodes with extra information, the problem is, Im not figuring out, what to type in typescript, and with the things, I know about the code know, doesn`t help me at all.

Ive tried some examples in datatables, but I could not find a similar problem, or Im not experienced enough to figure it out.

  <table datatable [dtOptions]="dtOptions" class="row-border hover" cellspacing="0" width="100%" dt-options ="vm.dtOptions" dt-instance = "vm.dtOptions"> 
      <thead>
        <tr>
          <th> NumProcesso </th>
          <th> Data </th>
          <th> CNJ </th>
          <th> Cliente </th>
          <th> CPFCNPJ </th>
          <th> Decisão </th>
          <th> Onus </th>
          <th> Tipo </th>
          <th> Reu </th>
          <th> Autor </th>
          <th> AdvogadoReu </th>
          <th> AdvogadoAutor </th>
          <th> Valor </th>
          <th> Forum </th>
          <th> Vara </th>
          <th> Descricao </th>



        </tr>
      </thead>

      <tbody>
        <ng-container ng-repeat="tdOptions in datatable"></ng-container>
        <td><a class  ="green shortInfo" href="javascript:;" ng-click="childInfo(dtOptions, $event)" title="Clique para ver mais"><i class = "glyphicon glyphicon-plus-sign"></i></a></td>
        <tr *ngFor="let item of responseData" >

          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <!-- <td>  </td> -->
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>
          <td>  </td>

          <table class="table boderless">
              <tr>
                <th width="150">Decisao :</th>
                <td></td>
              </tr>
              <!-- <tr>
                <th>Start Date :</th>
                <td></td>
              </tr>
              <tr>
                <th>Ext :</th>
                <td></td>
              </tr>  -->
            </table>
        </tr>

      </tbody>
    </table>

Ive got this until now, even tho in not even trying to use the .css yet because by seeing this, I cant figure out what to put in .ts. What should I use? there`s any part that I can send you? I know that is a datatable[dtOptions]




Aucun commentaire:

Enregistrer un commentaire