Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 822 Bytes

Dashboard.md

File metadata and controls

24 lines (17 loc) · 822 Bytes

Dashboard Component

Public Methods

method componentWillMount

Calls getDashboard when Dashboard is initally loaded.

method componentDidUpdate

Sets state.isFetching to true. Calls getDashboardData().

method getDashboardData

This is an abstract method. Your Dashboard should implement its own getDashboardData method which sets a data object to the dashboard in the following way:

// fetch data
setState({data: data});

When all data has been returned, getDashboardData() should set state.isFetching = false

method getFilters

Given a key, determine which filters should be applied to state.data[key];

method getChildData

Apply component dataHandlers and return data. Will return props.data if data is set as props on component.