Without Headers
$scope.items=[{id:0,title:'title 0',show:true,flex:5},{id:1,title:'title 2'...} ];
With Headers
$scope.items=[];
$scope.headers=[{id:'field name',header:'display name',show:true,flex:5,type:image || icon},{...}
];
With Headers and buttons enable
<sotos-list items="items" headers-names="headers" showdelete="true" showedit="true" on-edit="onEditBtn" on-delete="onDeleteBtn"></sotos-list>
With Type
Demo Test with parent_id to items
{id:1, parent_id:0,title: ...},
{id:2, parent_id:1,title: ...}