Skip to content
Snippets Groups Projects
Commit 802b8149 authored by Tom Robinson's avatar Tom Robinson
Browse files

Visualization propTypes

parent dc5fa205
No related branches found
No related tags found
No related merge requests found
/* eslint "react/prop-types": "warn" */
import React, { Component, PropTypes } from "react";
import ExplicitSize from "metabase/components/ExplicitSize.jsx";
......@@ -36,9 +38,31 @@ export default class Visualization extends Component {
static propTypes = {
series: PropTypes.array.isRequired,
className: PropTypes.string,
isDashboard: PropTypes.bool,
isEditing: PropTypes.bool,
actionButtons: PropTypes.node,
// errors
error: PropTypes.string,
errorIcon: PropTypes.string,
// slow card warnings
isSlow: PropTypes.bool,
expectedDuration: PropTypes.number,
// injected by ExplicitSize
width: PropTypes.number,
height: PropTypes.number,
// settings overrides from settings panel
settings: PropTypes.object,
// used for showing content in place of visualization, e.x. dashcard filter mapping
replacementContent: PropTypes.node,
// used by TableInteractive
setSortFn: PropTypes.func,
cellIsClickableFn: PropTypes.func,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment