Skip to content

m-input (m-interaction values) #126

@MarcusLongmuir

Description

@MarcusLongmuir

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions