Add CollectionView separator guidance to item template docs#3246
Add CollectionView separator guidance to item template docs#3246
Conversation
|
Learn Build status updates of commit 31460dc: ✅ Validation status: passedFor more details, please refer to the build report. |
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit c97a90c: ✅ Validation status: passed
For more details, please refer to the build report. |
|
If possible, I would love if the default documentation on separators would explain how to hide the separator after the last element. So far, this has been nontrivial to implement, so an officially recommended pattern would be great. |
The CollectionView docs state separators "can be provided, if desired, in the item template" but never show how. This adds concrete examples.
Changes
populate-data.md: New "Add separators between items" section after "Define item appearance" with two approaches:BoxViewat the bottom of the item template (closest to ListView's built-in separator)BorderwithRoundRectanglestroke shape wrapping item contentindex.md: Updated both the bullet list and migration table separator references to link to the new sectionExample (line separator approach)
The section frames these as suggestions, noting developers can implement separators any way that suits their design.
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.
Internal previews