File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
modules/data-widgets/src/themesource/datawidgets/web
pluggableWidgets/datagrid-web/src/components Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ $root: ".widget-datagrid";
432
432
& -refresh-container {
433
433
grid-column : 1 / -1 ;
434
434
padding : 0 ;
435
+
436
+ & --hidden {
437
+ display : none ;
438
+ }
435
439
}
436
440
437
441
& -refresh-indicator {
@@ -444,6 +448,9 @@ $root: ".widget-datagrid";
444
448
color : var (--brand-primary , $dg-brand-primary );
445
449
height : 4px ;
446
450
width : 100% ;
451
+ position : absolute ;
452
+ left : 0 ;
453
+ right : 0 ;
447
454
448
455
& ::-webkit-progress-bar {
449
456
background-color : transparent ;
Original file line number Diff line number Diff line change
1
+ import classNames from "classnames" ;
1
2
import { createElement , ReactElement } from "react" ;
2
3
3
- export function RefreshIndicator ( ) : ReactElement {
4
+ export function RefreshIndicator ( { show } : { show : boolean } ) : ReactElement {
4
5
return (
5
6
< div className = "tr" role = "row" >
6
- < div className = "th widget-datagrid-refresh-container" >
7
+ < div
8
+ className = { classNames ( "th widget-datagrid-refresh-container" , {
9
+ "widget-datagrid-refresh-container--hidden" : ! show
10
+ } ) }
11
+ >
7
12
< progress className = "widget-datagrid-refresh-indicator" />
8
13
</ div >
9
14
</ div >
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ const Main = observer(<C extends GridColumn>(props: WidgetProps<C>): ReactElemen
195
195
isLoading = { props . columnsLoading }
196
196
preview = { props . preview }
197
197
/>
198
- { showRefreshIndicator ? < RefreshIndicator /> : null }
198
+ < RefreshIndicator show = { showRefreshIndicator } />
199
199
< GridBody
200
200
isFirstLoad = { props . isFirstLoad }
201
201
isFetchingNextBatch = { props . isFetchingNextBatch }
You can’t perform that action at this time.
0 commit comments