Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Add disabled overflow links (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prospector authored Dec 7, 2023
1 parent 94db8ce commit d92447e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docs/components/overflow-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
'id': 'duplicate',
'action': () => {}
},
{
'id': 'disabled',
'disabled': true,
'action': () => {}
},
{
'id': 'report',
'link': 'https://example.com/report',
Expand All @@ -37,6 +42,9 @@
<template #duplicate>
<CopyIcon /> Duplicate
</template>
<template #disabled>
<XIcon /> Disabled
</template>
<template #report>
<ReportIcon /> Report
</template>
Expand Down Expand Up @@ -64,6 +72,11 @@
'id': 'duplicate',
'action': () => {}
},
{
'id': 'disabled',
'disabled': true,
'action': () => {}
},
{
'id': 'report',
'link': 'https://example.com/report',
Expand All @@ -83,12 +96,21 @@
}
]">
More options...
<template #like>
<HeartIcon /> Like
<template #play>
<PlayIcon /> Play
</template>
<template #duplicate>
<CopyIcon /> Duplicate
</template>
<template #disabled>
<XIcon /> Disabled
</template>
<template #report>
<ReportIcon /> Report
</template>
<template #remain>
<ClearIcon /> I shall remain
</template>
<template #delete>
<TrashIcon /> Delete
</template>
Expand Down
1 change: 1 addition & 0 deletions lib/components/base/OverflowMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:color="option.color ? option.color : 'default'"
:hover-filled="option.hoverFilled"
:hover-filled-only="option.hoverFilledOnly"
:disabled="option.disabled"
transparent
:action="
option.action
Expand Down

0 comments on commit d92447e

Please sign in to comment.