AAU I want to re-order my views with drag & drop (#5002)
### Description I want to re-order my views with drag & drop ### Refs #4782 ### Demo https://jam.dev/c/699ece8a-0467-494a-b9a3-faf666ee9c93 Fixes #4782 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: FellipeMTX <fellipefacdir@gmail.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -17,6 +17,7 @@ export type MenuItemDraggableProps = {
|
||||
text: string;
|
||||
isDragDisabled?: boolean;
|
||||
className?: string;
|
||||
isIconDisplayedOnHoverOnly?: boolean;
|
||||
};
|
||||
export const MenuItemDraggable = ({
|
||||
LeftIcon,
|
||||
@ -27,6 +28,7 @@ export const MenuItemDraggable = ({
|
||||
text,
|
||||
isDragDisabled = false,
|
||||
className,
|
||||
isIconDisplayedOnHoverOnly = true,
|
||||
}: MenuItemDraggableProps) => {
|
||||
const showIconButtons = Array.isArray(iconButtons) && iconButtons.length > 0;
|
||||
|
||||
@ -36,6 +38,7 @@ export const MenuItemDraggable = ({
|
||||
accent={accent}
|
||||
className={className}
|
||||
isMenuOpen={!!isTooltipOpen}
|
||||
isIconDisplayedOnHoverOnly={isIconDisplayedOnHoverOnly}
|
||||
>
|
||||
<MenuItemLeftContent
|
||||
LeftIcon={LeftIcon}
|
||||
|
||||
Reference in New Issue
Block a user