[][src]Module savory_core::element

Traits used to handle model messages and update element state accordingly.

Elements

Elements are an interactive views, they contain their own state and interact with users via messages and update their state accordingly. Elements must implement the Element and View traits.

App Element

App element are normal elements but two main difference, the Config type is Url type, and the PMsg generic type have to be the same type as Message type, and this actully make sense becuase PMsg ment to hold the parent element message type and app elements doesn't have parent.

TODO Examples

TODO Helper types

Traits

AppElementExt

Extension trait for Element when it's used on App element

Element

Trait used to create element and handle element messages and update element state accordingly.