Skip to content

Commit

Permalink
Refactor #4211 - For SpeedDial
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jul 27, 2023
1 parent 18d4c45 commit d133573
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions components/lib/speeddial/SpeedDial.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ export interface SpeedDialContext {
* @defaultValue false
*/
active: boolean;
/**
* Current hidden state of menuitem as a boolean.
* @defaultValue false
*/
hidden: boolean;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion components/lib/speeddial/SpeedDial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ export default {
getPTOptions(id, key) {
return this.ptm(key, {
context: {
active: this.isItemActive(id)
active: this.isItemActive(id),
hidden: !this.d_visible
}
});
},
Expand Down

0 comments on commit d133573

Please sign in to comment.