You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/react-dashboard/content/4_explore_page.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ order: 4
5
5
6
6
On the Explore page, the user either creates a new chart or updates the existing one. To do so, the user should be able to select measures, dimensions, apply filters if needed, and select a chart type. We also need to provide a way to save a new chart to the dashboard or to update the existing one when editing.
7
7
8
-
The GIF below shows how the page will look after the styling is applied.
8
+
The image below shows how the page will look after the styling is applied.
9
9
10
-
<GIF>
10
+

11
11
12
12
Let’s break down the page into components. We need a modal window to let the user set or update the chart’s title—`<TitleModal />`. Next, we have a page’s header—`<PageHeader />`. Inside the page’s header to the right, we have a button that is used to either add a chart to the dashboard or update it. It is a regular `<Button />` component from antd’s UI kit. To the left—a page’s title, which either displays a chart’s title when editing or just says ‘Explore’ when we are building a new one. Let’s call it an `<ExploreTitle />` component.
Copy file name to clipboardExpand all lines: guides/react-dashboard/content/5_query_builder.md
+2-19
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ component. Feel free to skip this part if you don't need to style it. Below, you
8
8
can see the final design of the query builder, which we'll have by the end of this
9
9
part.
10
10
11
-
<QUERYBUILDERGIF>
11
+
`video: /videos/5-video.mp4`
12
12
13
13
The query builder component in the template, `<ExploreQueryBuilder />`, is built based on the
14
14
`<QueryBuilder />` component from the `@cubejs-client/react` package. The `<QueryBuilder />` abstracts state management and API calls to Cube.js Backend. It uses render prop and doesn’t render anything itself, but calls the render function instead. This way it gives maximum flexibility to building a custom-tailored UI with a minimal API.
0 commit comments