Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
parseFlags() function
parseFlags() function
Converts any mode modifiers in the text to the Javascript equivalent flag
Signature
export declare function parseFlags(text: string): {
cleaned: string;
flags: string;
};
Import
import { parseFlags } from '@grafana/data';
Parameters
Parameter | Type | Description |
---|---|---|
text | string |
Returns:
{
cleaned: string;
flags: string;
}