Order items list by isActive. #434

This commit is contained in:
Joan Sanchez 2018-07-26 07:46:25 +02:00
parent 4e2ff17121
commit a05347d768
2 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
<vn-crud-model <vn-crud-model
vn-id="model" vn-id="model"
url="/item/api/Clients" url="/item/api/Clients"
filter="::$ctrl.filter" order="id DESC"
limit="8" limit="8"
data="clients" data="clients"
auto-load="false"> auto-load="false">
</vn-crud-model> </vn-crud-model>
<div margin-medium> <div margin-medium>
<div class="vn-list"> <div class="vn-list">
<vn-card pad-medium-h> <vn-card pad-medium-h>

View File

@ -2,7 +2,7 @@
vn-id="model" vn-id="model"
url="/item/api/Items/filter" url="/item/api/Items/filter"
limit="8" limit="8"
order="name ASC" order="isActive ASC, name"
data="items" data="items"
auto-load="false"> auto-load="false">
</vn-crud-model> </vn-crud-model>