Array

Array type is utilized by the q-grid to visualize primitive type collections. If complex object list should be visualized, it’s required to setup itemLabel property or make custom cell templates.

<q-grid>
   <q-grid-columns>
      <q-grid-column type="array" key="friends">
      </q-grid-column>
   </q-grid-columns>
</q-grid>
Default template and specific properties
<q-grid>
   <q-grid-columns>
      <q-grid-column type="array">
         <ng-template for="body" let-$cell>
            <ul>
               <li *ngFor="let item of $cell.value | qGridArray">
                  {{$cell.column.itemLabel(item)}}
               </li>
            </ul>
         </ng-template>
      </q-grid-column>
   </q-grid-columns>
</q-grid>