@microsoft/fast-element > ElementController > removeBehavior
ElementController.removeBehavior() method
Removes the behavior from the component.
Signature:
removeBehavior(behavior: HostBehavior<TElement>, force?: boolean): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
behavior |
HostBehavior<TElement> |
The behavior to remove. |
|
force |
boolean |
(Optional) Forces removal even if this behavior was added more than once. |
Returns:
void