You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reduce the time it takes for new users to evaluate Player, we need to expand the reference asset set to incoporate more common user interaction patterns.
A choice asset represents a single selection choice, often displayed as radio buttons in a web context. This will allow users to test out more complex flows than just inputs + buttons.
Requirements
choice
A choice asset must have a title to give the user context on what choice they are making
The title should be an asset
A choice asset can have an optional note to provide more detailed information about the selection
The note should be an asset
A choice asset should update the value of a binding property supplied to it
A choice asset should retrieve validation information for its binding, and expose that for all rendering platforms to display
A choice asset will have an array of choices
Each entry in choices will not be an asset, as the choice assets per platform will need direct control over the layout
Each entry must have a value that is set to the binding when the option is selected
The value should be a primitive
Each entry must have a label that describes what value is being selected
The label should be an asset
Execution
Create a new choice asset in the core reference assets and add types for the authored content, and the transformed content.
Create a transform for this choice asset
The transform should use the binding and provide functions on the transformed type to make it simple for the rendering platform to select an option, similar to run in the action asset
The transform should populate a property on each choice to indicate its selection status
validation to be populated from the binding/schema information
validation is not a content authored field
Add mocks to the mocks package to exercise required and optional fields, to ease unit testing, and implementations for rendering
Add the DSL Component for choice to allow programmatic content authoring
To reduce the time it takes for new users to evaluate Player, we need to expand the reference asset set to incoporate more common user interaction patterns.
A
choice
asset represents a single selection choice, often displayed as radio buttons in a web context. This will allow users to test out more complex flows than just inputs + buttons.Requirements
choice
choice
asset must have atitle
to give the user context on what choice they are makingtitle
should be an assetchoice
asset can have an optionalnote
to provide more detailed information about the selectionnote
should be an assetchoice
asset should update the value of abinding
property supplied to itchoice
asset should retrievevalidation
information for its binding, and expose that for all rendering platforms to displaychoice
asset will have an array ofchoices
choices
will not be an asset, as thechoice
assets per platform will need direct control over the layoutvalue
that is set to thebinding
when the option is selectedvalue
should be a primitivelabel
that describes what value is being selectedlabel
should be an assetExecution
choice
asset in the core reference assets and add types for the authored content, and the transformed content.choice
assetbinding
and provide functions on the transformed type to make it simple for the rendering platform to select an option, similar torun
in theaction
assetvalidation
to be populated from the binding/schema informationvalidation
is not a content authored fieldchoice
to allow programmatic content authoringThe text was updated successfully, but these errors were encountered: