Opinion poll!

You have a <button>, it makes a <foo> open. What would be the best declarative attribute for the button to control the foo?

<button clickaction=open
17.1%
<button invokeaction=open
42.1%
<button command=open
26.3%
Other (comment ideas)
14.5%
Poll ended at .
@keithamus I'm slightly confused by this - would there then be another attribute that gives the id of the <foo> element?
@sarajw yes there would. It would likely be named similarly, so e.g. `clickactiontarget`, `invoketarget`, `commandtarget`, or similar.

@keithamus ok that makes sense :)

I don't much like the one with 'click' in it, as that's not the only way to activate a button.

They all seem so long, haha. Honestly otherwise however it's named I'd just be so happy to code stuff up like that. So neat. So simple!

@sarajw full disclosure we've been working on the idea for a while: https://open-ui.org/components/invokers.explainer

This is a last minute look at the API naming!

Invoker Commands (Explainer) | Open UI

Open UI

@keithamus thank you! Yeah if I was at my computer and not my phone I might have gone looking myself - you did post an article about it a while back I think? I love the whole thing.