From ec08bba64f2adb2bb903f377fc26ab9a3bbb0b44 Mon Sep 17 00:00:00 2001 From: Matt Elen Date: Fri, 25 Nov 2022 17:54:24 +0000 Subject: [PATCH] fix(1343): Add selection slot to docs --- documentation/partials/api/_slots.pug | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/documentation/partials/api/_slots.pug b/documentation/partials/api/_slots.pug index 14258df6..f688a7a2 100644 --- a/documentation/partials/api/_slots.pug +++ b/documentation/partials/api/_slots.pug @@ -75,11 +75,30 @@ h2.typo__h2#sub-slots(data-section) Slots tr.table__tr td.table__td: strong tag td.table__td - | Slot that is used for all selected options (tags) + | Slot that is used for each selected option (tags) br | Slot-scope ul li option – selected option li search – the search value li remove – method to remove the slot (pass the option) - + + tr.table__tr + td.table__td: strong selection + td.table__td + | Slot that can be used to show all selected tags. The main different between the + code selection + | slot and the + code tag + | slot is that the + code tag + | slot renders per tag, however this slot renders just once, leaving the display of each + | tag to you (if you wish to display each one) + br + | Slot-scope + ul + li search – the search value + li removeElement – method to remove the slot (pass the option) + li values – Array of selected values + li is-open – Boolean if the select is open +