Skip to content

Toggle values #104

@mwarman

Description

@mwarman

Describe the story

Provide a clear description of the new feature or improvement to existing functionality.

Currently the Toggle component permits only boolean on true and off false values when integrated with a form. Update the Toggle to allow for the "on" and "off" values to be provided as component properties. The values may be of type:

  • boolean
  • number
  • string

Acceptance criteria

Provide clear acceptance criteria to validate the story is complete.

Gherkin syntax example:

GIVEN a Toggle has supplied on and off values
WHEN the Toggle is set to "on"
THEN the form context is updated to contain the supplied on value

WHEN the Toggle is set to "off"
THEN the form context is updated to contain the supplied off value

Additional context

Add any other context about the story here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions