Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Angular question
Message
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01601977
Message ID:
01602004
Vues:
61
>Hi everybody,
>
>I have the following code for the listing of the table in the chtml view file which uses Angular.js framework:
>
>
>        <tbody>
>                            <tr ng-repeat="result in results" ng-click="loadView(result)">
>                                <td class="col-md-10">
>                                    {{ result.descrip }}
>                                    <span class="label label-danger pull-right" ng-show="result.hidden">Hidden</span>
>                                </td>
>                                <td class="col-md-2">
>                                    {{ result.tmplType | passTicket}}
>                                    <span class="label label-danger pull-right" ng-show="result.hidden">Hidden</span>
>                                </td>
>                            </tr>
>                        </tbody>
>
>
>As a result, I see title of the column saying 'Descrip' and 'tmplType'. I want to change the columns titles in the table to be 'Description' and 'Type' instead.
>

You'd normally have a thead section that includes the column names,ex.:
<table>
   <thead>
      <tr>
         <th>Description</th>
         <th>Type</th>
      </tr>
   </thead>
   <tbody>
      <!-- rest of your existing code here -->
   </tbody>
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform