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 Grecko
parent d1c46fd13f
commit 18218454e2
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ Here the `ListView` will only show elements that contains the content of the `Te
StringSorter { 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`.