Skip to content

Add more Sample Option Attributes #207

@michael-hawker

Description

@michael-hawker

Related #149

Realized as we've been building more samples, that just having bool and multi-choice as our options is a bit limiting, so wanted to list out some other simple scenarios for ToolkitSample*OptionAttributes we may want in the future:

Name Parameters Description
ToolkitSampleCommandOptionAttribute label + nameof(SomeMethodOnSampleClass) Creates a Button with label content which will execute the command when clicked
ToolkitSampleTextOptionAttribute title (as normal) + placeholder Creates a TextBox with placeholder text, allows user to type freeform text
ToolkitSampleSliderOptionAttribute min + max + step + initial Creates a Slider

We may also want a flag for MultiChoice to change whether it's radio buttons or a combobox?

We can always refer to our existing sample methods for ideas.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions