grafana/packages/grafana-ui
David 9507eda9d1
QueryField: Prevent query runs on blur in Explore (#20180)
As discussed in a UX feedback session, it's annoying that queries are
automatically executed in Explore. This change adds props to override
the blur behavior.

- add `onBlur` to Explore query field props
- Explore's query row will pass down an empty function for onBlur to the
query fields
- pass onBlur through to the QueryField component for Loki and
Prometheus
- add test to QueryField to make sure if onBlur is specified, the
onRunQuery is not executed
2019-11-06 15:08:30 +00:00
..
.storybook Forms: Introduce new Primary, Secondary and Destructive buttons (#19973) 2019-10-25 14:35:29 +02:00
src QueryField: Prevent query runs on blur in Explore (#20180) 2019-11-06 15:08:30 +00:00
CHANGELOG.md grafana/ui 6.0.0-alpha.0 release version bump 2019-02-22 11:30:45 +01:00
index.js Implemented scripts for building and releasing grafana/ui 2019-02-21 15:06:29 +01:00
package.json grafana/ui: Drawer component (#20078) 2019-11-01 12:27:24 +01:00
README.md Packages: update versioning and release process (#18195) 2019-09-12 08:00:31 +02:00
rollup.config.ts Panels: Progress on new singlestat / BigValue (#19374) 2019-10-04 12:01:42 +02:00
tsconfig.build.json Implemented scripts for building and releasing grafana/ui 2019-02-21 15:06:29 +01:00
tsconfig.json Chore: Update Slate to 0.47.8 (#19197) 2019-09-23 12:26:05 +01:00
tslint.json Add a @grafana/runtime package with backendSrv interface (#16533) 2019-06-03 17:55:59 +02:00

Grafana UI components library

@grafana/toolkit is currently in ALPHA. Core API is unstable and can be a subject of breaking changes!

@grafana/ui is a collection of components used by Grafana

Our goal is to deliver Grafana's common UI elements for plugins developers and contributors.

See package source for more details.

Installation

yarn add @grafana/ui

npm install @grafana/ui

Development

For development purposes we suggest using yarn link that will create symlink to @grafana/ui lib. To do so navigate to packages/grafana-ui and run yarn link. Then, navigate to your project and run yarn link @grafana/ui to use the linked version of the lib. To unlink follow the same procedure, but use yarn unlink instead.