API Reference@grafana/data › parseFlags

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; }