flarebyte / bubblegum-entity / Bubblegum.Entity.StateEntity

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


type alias Model =
{ attributes : List Bubblegum.Entity.Attribute.Model }

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

setAttributes : List Bubblegum.Entity.Attribute.Model -> Model -> Model

Assign attributes to an entity

asAttributesIn : Model -> List Bubblegum.Entity.Attribute.Model -> Model

Assign attributes to an entity