Skip to main content
Version: 2.x

ElementStyles.setDefaultStrategy() method

@microsoft/fast-element > ElementStyles > setDefaultStrategy

ElementStyles.setDefaultStrategy() method

Sets the default strategy type to use when creating style strategies.

Signature:

static setDefaultStrategy(Strategy: ConstructibleStyleStrategy): void;

Parameters

Parameter

Type

Description

Strategy

ConstructibleStyleStrategy

The strategy type to construct.

Returns:

void