Refactor #4211 - For SpeedDial

pull/4224/head
Tuğçe Küçükoğlu 2023-07-27 17:32:30 +03:00
parent 18d4c453bd
commit d13357356b
2 changed files with 7 additions and 1 deletions

View File

@ -112,6 +112,11 @@ export interface SpeedDialContext {
* @defaultValue false * @defaultValue false
*/ */
active: boolean; active: boolean;
/**
* Current hidden state of menuitem as a boolean.
* @defaultValue false
*/
hidden: boolean;
} }
/** /**

View File

@ -111,7 +111,8 @@ export default {
getPTOptions(id, key) { getPTOptions(id, key) {
return this.ptm(key, { return this.ptm(key, {
context: { context: {
active: this.isItemActive(id) active: this.isItemActive(id),
hidden: !this.d_visible
} }
}); });
}, },