Skip to content

Commit

Permalink
Add lab examples for selectable item
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Dec 17, 2024
1 parent dab3a6d commit febbef5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions panel/lab/components/item/1_list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
width="1/2"
/>
</k-lab-example>
<k-lab-example label="Selectable">
<k-item
:image="{ src: 'https://picsum.photos/800/600' }"
:selectable="true"
info="With some info"
text="This is a nice item"
/>
</k-lab-example>
<k-lab-example label="Theme: disabled">
<k-item
:image="{ src: 'https://picsum.photos/800/600' }"
Expand Down
9 changes: 9 additions & 0 deletions panel/lab/components/item/2_cards/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
width="1/2"
/>
</k-lab-example>
<k-lab-example label="Selectable">
<k-item
:image="{ src: 'https://picsum.photos/800/600' }"
:selectable="true"
layout="cards"
info="With some info"
text="This is a nice item"
/>
</k-lab-example>
<k-lab-example label="Theme: disabled">
<k-item
:image="{ src: 'https://picsum.photos/800/600' }"
Expand Down
9 changes: 9 additions & 0 deletions panel/lab/components/item/3_cardlets/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@
width="1/2"
/>
</k-lab-example>
<k-lab-example label="Selectable">
<k-item
:image="{ src: 'https://picsum.photos/800/600' }"
:selectable="true"
layout="cardlets"
info="With some info"
text="This is a nice item"
/>
</k-lab-example>
<k-lab-example label="Theme: disabled">
<k-item
:image="{ src: 'https://picsum.photos/800/600' }"
Expand Down

0 comments on commit febbef5

Please sign in to comment.