-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add custom dropdown menu item filter in edit mode #8
Conversation
|
||
```js | ||
import {DashKit} from '@yandex-cloud/dashkit'; | ||
|
||
DashKit.setSettings({ | ||
gridLayout: {margin: [8, 8]}, | ||
isMobile: true, | ||
// menu: [] as Array<MenuItem>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just an example, if we really pass an empty array, we will get an empty menu
const itemHandler = item.handler; | ||
|
||
const itemAction = | ||
itemHandler && typeof itemHandler === 'function' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not need part with itemHandler &&
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
implement new feature for filtering menu item in edit mode by custom
visible
handleralso fix dropdown menu item handler with
ConfigItem
as callback params