@microsoft/fast-element > ElementController > addBehavior
ElementController.addBehavior() method
Adds the behavior to the component.
Signature:
addBehavior(behavior: HostBehavior<TElement>): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
behavior |
HostBehavior<TElement> |
The behavior to add. |
Returns:
void