Include checkbox in README.md

This includes the missing checkbox component for the sorting demo.
This commit is contained in:
Kenn Sebesta 2017-08-01 18:17:51 -04:00 committed by oKcerG
parent 14c0acc993
commit dbfed0c7c4
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ Here the `ListView` will only show elements that contains the content of the `Te
RoleSorter { roleName: "lastName" }
]
}
CheckBox {
id:onlyShowFavoritesCheckbox
}
```
This will show in the corresponding `ListView` only the elements where the `firstName` or the `lastName` match the text entered in the `textField`, and if the `onlyShowFavoritesCheckbox` is checked it will aditionnally filter the elements where `favorite` is `true`.
The favorited elements will be shown first and all the elements are sorted by `firstName` and then `lastName`.