flarebyte/bubblegum-entity/1.1.0

NOTE: the latest version is 1.1.1

Bubblegum.Entity.StateEntity

A state entity represents the state that could be applied to a widget

type alias Model =
{ attributes : List Model }

The core representation of state entity is mostly a list of attributes.

setAttributes : List Model -> Model -> Model

Assign attributes to an entity

asAttributesIn : Model -> List Model -> Model

Assign attributes to an entity