Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Aug 20, 2024
1 parent 4d2b38d commit d41b8cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>commandfor &amp; command attributes</h1>
</p>
<hr />
<h2>Initial Actions</h2>
<button commandfor="my-dialog" command="showModal" interesttarget="dialog-explainer">
<button commandfor="my-dialog" command="show-modal" interesttarget="dialog-explainer">
This will open the dialog
</button>

Expand All @@ -45,24 +45,24 @@ <h2>Initial Actions</h2>

<hr />

<button commandfor="my-popover-1" command="togglePopover">
<button commandfor="my-popover-1" command="toggle-popover">
Toggles a popover
</button>

<div popover id="my-popover-1">
<button commandfor="my-popover-1" command="hidePopover">X</button>
<button commandfor="my-popover-1" command="hide-popover">X</button>
This is a popover
</div>
<hr />

<details>
<summary>Future Actions</summary>
<button commandfor="my-file-input" command="showPicker">
<button commandfor="my-file-input" command="show-picker">
This will open the file picker
</button>
<input type="file" id="my-file-input" />
<hr />
<button commandfor="my-date-input" command="showPicker">
<button commandfor="my-date-input" command="show-picker">
This should open the date picker
</button>
<input type="date" id="my-date-input" />
Expand All @@ -83,7 +83,7 @@ <h2>Initial Actions</h2>

<hr />

<button commandfor="my-select" command="showPicker" interesttarget="select-explainer">
<button commandfor="my-select" command="show-picker" interesttarget="select-explainer">
This will open the select
</button>
<select id="my-select">
Expand All @@ -98,7 +98,7 @@ <h2>Initial Actions</h2>
<hr />
<button
commandfor="my-video"
command="playpause"
command="play-pause"
interesttarget="my-video-playpause-explainer"
>
Play/pause
Expand Down

0 comments on commit d41b8cd

Please sign in to comment.