Skip to content

Add option to configure interactive states for components #6

@SirPepe

Description

@SirPepe

Simple component without states:

{
  "name": "Navigation",
  "source": ".navigation"
},

Simple component with an additional state (state is just a simple selector):

{
  "name": "Navigation",
  "source": ".navigation",
  "states": [ ".navigation.open "]
},

Not so simple component with an additional state (state is a mapping for target and source, one object for each state):

{
  "name": "Navigation",
  "source": ".navigation",
  "target": "nav",
  "states": [{
    "source": ".navigation.open",
    "target": "nav.activated"
  }]
},

Before this gets added it should be demonstrated that a simple selector like nav.activated can be turned into a function that can set the element into the state described by the selector

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions