mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
42 lines
880 B
Markdown
42 lines
880 B
Markdown
|
+++
|
||
|
# -----------------------------------------------------------------------
|
||
|
# Do not edit this file. It is automatically generated by API Documenter.
|
||
|
# -----------------------------------------------------------------------
|
||
|
title = "parseFlags"
|
||
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||
|
type = "docs"
|
||
|
+++
|
||
|
|
||
|
## parseFlags() function
|
||
|
|
||
|
### parseFlags() function
|
||
|
|
||
|
Converts any mode modifiers in the text to the Javascript equivalent flag
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function parseFlags(text: string): {
|
||
|
cleaned: string;
|
||
|
flags: string;
|
||
|
};
|
||
|
```
|
||
|
<b>Import</b>
|
||
|
|
||
|
```typescript
|
||
|
import { parseFlags } from '@grafana/data';
|
||
|
```
|
||
|
<b>Parameters</b>
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| text | <code>string</code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`{
|
||
|
cleaned: string;
|
||
|
flags: string;
|
||
|
}`
|
||
|
|