55 */
66import React , { FC , PureComponent } from 'react' ;
77import { Query , getServerContext } from '@labkey/api' ;
8- import { SchemaQuery , ServerContextProvider , withAppUser , AppContextProvider } from '@labkey/components' ;
8+ import {
9+ AppContextProvider ,
10+ Notifications ,
11+ NotificationsContextProvider ,
12+ SchemaQuery ,
13+ ServerContextProvider ,
14+ withAppUser ,
15+ } from '@labkey/components' ;
916
1017import { ExampleDetailPanel } from "./ExampleDetailPanel" ;
1118import { ExampleGridPanel } from "./ExampleGridPanel" ;
@@ -24,28 +31,31 @@ export const App: FC = (() => {
2431 return (
2532 < ServerContextProvider initialContext = { serverContext } >
2633 < AppContextProvider >
27- < p >
28- This page contains two example usages of the < b > QueryModel API</ b > . The first panel uses
29- the < b > DetailPanelWithModel</ b > to show a details view of some information about the current
30- LabKey container. The second panel uses the < b > GridPanel</ b > and < b > withQueryModels</ b > to show a
31- grid panel view of LabKey container information for all Labkey containers that the current,
32- logged-in user has permissions to access. This component has options for sorting, filtering, paging,
33- and exporting the data shown in the grid.
34- </ p >
35- < p >
36- Further details on these components and examples can be found in the
37- < a href = { 'https://github.com/LabKey/labkey-ui-components/blob/master/packages/components/docs/public.md' } target = { '_blank' } > Public API Docs</ a >
38- page for the < b > @labkey/components</ b > package.
39- </ p >
40- < ExampleDetailPanel
41- asPanel = { true }
42- />
43- < ExampleGridPanel
44- title = "LabKey Server Containers"
45- queryConfigs = { queryConfigs }
46- asPanel = { true }
47- autoLoad
48- />
34+ < NotificationsContextProvider >
35+ < Notifications />
36+ < p >
37+ This page contains two example usages of the < b > QueryModel API</ b > . The first panel uses
38+ the < b > DetailPanelWithModel</ b > to show a details view of some information about the current
39+ LabKey container. The second panel uses the < b > GridPanel</ b > and < b > withQueryModels</ b > to show a
40+ grid panel view of LabKey container information for all Labkey containers that the current,
41+ logged-in user has permissions to access. This component has options for sorting, filtering, paging,
42+ and exporting the data shown in the grid.
43+ </ p >
44+ < p >
45+ Further details on these components and examples can be found in the
46+ < a href = { 'https://github.com/LabKey/labkey-ui-components/blob/master/packages/components/docs/public.md' } target = { '_blank' } > Public API Docs</ a >
47+ page for the < b > @labkey/components</ b > package.
48+ </ p >
49+ < ExampleDetailPanel
50+ asPanel = { true }
51+ />
52+ < ExampleGridPanel
53+ title = "LabKey Server Containers"
54+ queryConfigs = { queryConfigs }
55+ asPanel = { true }
56+ autoLoad
57+ />
58+ </ NotificationsContextProvider >
4959 </ AppContextProvider >
5060 </ ServerContextProvider >
5161 )
0 commit comments