Custom Button card: tap action to open menu/sidebar?

Is there any way to make this work? I’m looking for the same behaviour as mushroom menu chip card, but with custom button card…

type: custom:button-card
icon: mdi:menu
show_name: false
tap_action:
  toggle_menu: |
    [[[ 
      this.dispatchEvent(new Event('hass-toggle-menu', { bubbles: true,
          composed: true })); ]]]
2 Likes

Thank you, John