Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m-input (m-interaction values) #126

Open
MarcusLongmuir opened this issue Oct 17, 2023 · 0 comments
Open

m-input (m-interaction values) #126

MarcusLongmuir opened this issue Oct 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@MarcusLongmuir
Copy link
Collaborator

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>
@MarcusLongmuir MarcusLongmuir converted this from a draft issue Oct 17, 2023
@MarcusLongmuir MarcusLongmuir added the enhancement New feature or request label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant