Loading...
<button commandfor="#menu" command="toggle-popover">Menu</button>
<div id="menu" popover>...</div><button commandfor="menu" command="toggle-popover">Menu</button>
<div id="menu" popover>...</div>commandfor takes a plain id, not a CSS selector.
id is not found.id of the target, without a '#'.<button>, not on a <div> or a link.command attribute that names the action.Built-in ones include 'show-modal', 'close', 'request-close', 'show-popover', 'hide-popover' and 'toggle-popover'.
Yes. Use a custom command that starts with '--' and listen for the command event on the target.