Skip to content

Commit

Permalink
Add a documentation sample for object support
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Feb 20, 2023
1 parent eba673e commit 888e295
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/NcActionInput/NcActionInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ For the multiselect component, all events will be passed through. Please see the
</template>
Please pick a fruit
</NcActionInput>
<NcActionInput
v-model="multiSelected"
type="multiselect"
label="label"
track-by="id"
:multiple="true"
:options="[{label:'Apple', id: 'apple'}, {label:'Banana', id: 'banana'}, {label:'Cherry', id: 'cherry'}]">
<template #icon>
<Pencil :size="20" />
</template>
Please pick a fruit object
</NcActionInput>
</NcActions>
</template>
<script>
Expand All @@ -99,6 +111,7 @@ For the multiselect component, all events will be passed through. Please see the
return {
color: '#0082C9',
text: 'This is the input text',
multiSelected: [],
}
},
}
Expand Down

0 comments on commit 888e295

Please sign in to comment.