Define and implement the web version of an m-input tag that can be added as the direct child of m-interaction to allow requesting values from a user when submitting the enclosing interaction.
This would also benefit from introducing a label attribute to m-interaction to separate the meaning between an internal reference to the input/interaction and the presentation of that element to the user and also using those same semantics in the m-input element (e.g. name="songName" with label="Song Name").
Example code:
<m-interaction name="start" label="Start"></m-interaction>
<m-interaction name="stop" label="Stop"></m-interaction>
<m-interaction name="change track" label="Change Track">
<m-input type="string" name="songName" label="Song Name" default="Happy Birthday" placeholder="Enter a song name..."></m-input>
<m-input type="boolean" name="playShuffleAfterwards" label="Play Shuffle Afterwards" default="true"></m-input>
</m-interaction>
<m-interaction name="setVolume" label="Set Volume">
<m-input type="number" name="volume" default="1.0"></m-input>
</m-interaction>
Define and implement the web version of an
m-inputtag that can be added as the direct child ofm-interactionto allow requesting values from a user when submitting the enclosing interaction.This would also benefit from introducing a
labelattribute tom-interactionto separate the meaning between an internal reference to the input/interaction and the presentation of that element to the user and also using those same semantics in them-inputelement (e.g.name="songName"withlabel="Song Name").Example code: