You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All (sub)components should have a common API for dealing with identifiers, text, icon, events et al.
Implement WithIdentifier for (sub)components that need an identifier
Implement WithText for (sub)components that have a text
Implement WithIcon for (sub)components that have an icon
Implement WithIconAndText for (sub)components that have both
Implement HasItems for (sub)components that have a list of items to be displayed as subcomponents
Implement ComponentStore for (sub)components that need to store arbitrary contextual data
Implement HasValue and optionally WithObservableValue for (sub)components that have an (observable) value
Limit the usage of interfaces from Elemento: Right now all (sub)components implement HasElement<E, B>, HasHTMLElement<E, B>, Finder<E>, and Container<E, B>. This leads to ambiguous methods for text manipulation. One solution is to add specific methods for DOM and CSS manipulation to the BaseComponent and SubComponent class and remove the implementation of the Elemento interfaces.
All (sub)components should have a common API for dealing with identifiers, text, icon, events et al.
WithIdentifier
for (sub)components that need an identifierWithText
for (sub)components that have a textWithIcon
for (sub)components that have an iconWithIconAndText
for (sub)components that have bothHasItems
for (sub)components that have a list of items to be displayed as subcomponentsComponentStore
for (sub)components that need to store arbitrary contextual dataHasValue
and optionallyWithObservableValue
for (sub)components that have an (observable) valueHasElement<E, B>
,HasHTMLElement<E, B>
,Finder<E>
, andContainer<E, B>
. This leads to ambiguous methods for text manipulation. One solution is to add specific methods for DOM and CSS manipulation to theBaseComponent
andSubComponent
class and remove the implementation of the Elemento interfaces.The text was updated successfully, but these errors were encountered: