Skip to main content

Function: parseCssClassesFromString()

parseCssClassesFromString(classString, filter?): string[]

Defined in: src/sdk/components/FSComponent.ts:844

Parses a space-delimited CSS class string into an array of CSS classes.

Parameters

ParameterTypeDescription
classStringstringA space-delimited CSS class string.
filter?(cssClass) => booleanA function which filters parsed classes. For each class, the function should return true if the class should be included in the output array and false otherwise.

Returns

string[]

An array of CSS classes derived from the specified CSS class string.