Single column with multiple rows

Single column with multiple rows

Lakshmi SLakshmi S Posts: 5Questions: 3Answers: 0

How can I create a single column without a header/title which has multiple values as rows? usig datatables rows and columns

Answers

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    Like this example?
    http://live.datatables.net/yusasako/1/edit

    Create a thead that is blank. You can use the dom option to remove the search input, page length, etc.

    Kevin

  • Lakshmi SLakshmi S Posts: 5Questions: 3Answers: 0

    This is fine and I know. But while using rows and columns like below
    Eg: HTML : <ngx-datatable [rows]="rows"
    [columns]="columns">
    </ngx-datatable>

    TS: rows = [
    {name:'Lakshmi'},
    {name:'Zora'},
    ];
    columns = [
    {name: 'Name', prop:'Name'},
    ];

    Its mandatory to give a column/field name. Without this we cannot give values to it in rows. Here I dont want to use column/filed name(header). Without a header or title i want to have only rows with values as follows


    Lakshmi

    Zora

This discussion has been closed.