File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
modules/data-widgets/src/themesource/datawidgets/web
pluggableWidgets/gallery-web/src/components
shared/widget-plugin-component-kit/src Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 22 grid-column : 1 / -1 ;
33 padding : 0 ;
44 position : relative ;
5+
6+ & -padding {
7+ padding : var (--spacing-small ) 0 ;
8+ }
59}
610
711.mx-refresh-indicator {
Original file line number Diff line number Diff line change 1+ import { RefreshIndicator } from "@mendix/widget-plugin-component-kit/RefreshIndicator" ;
12import { Pagination } from "@mendix/widget-plugin-grid/components/Pagination" ;
23import { KeyNavProvider } from "@mendix/widget-plugin-grid/keyboard-navigation/context" ;
34import { FocusTargetController } from "@mendix/widget-plugin-grid/keyboard-navigation/FocusTargetController" ;
@@ -86,6 +87,7 @@ export function Gallery<T extends ObjectItem>(props: GalleryProps<T>): ReactElem
8687 >
8788 < GalleryTopBar > { showTopPagination && pagination } </ GalleryTopBar >
8889 { props . showHeader && < GalleryHeader aria-label = { props . headerTitle } > { props . header } </ GalleryHeader > }
90+ < RefreshIndicator className = "mx-refresh-container-padding" />
8991 < GalleryContent
9092 hasMoreItems = { props . hasMoreItems }
9193 setPage = { props . setPage }
Original file line number Diff line number Diff line change 1+ import classNames from "classnames" ;
12import { createElement , ReactElement } from "react" ;
23
3- export function RefreshIndicator ( ) : ReactElement {
4+ type RefreshIndicatorProps = {
5+ className ?: string ;
6+ } ;
7+
8+ export function RefreshIndicator ( { className } : RefreshIndicatorProps ) : ReactElement {
49 return (
510 < div className = "tr" role = "row" >
6- < div className = "th mx-refresh-container" >
11+ < div className = { classNames ( "th mx-refresh-container" , className ) } >
712 < progress className = "mx-refresh-indicator" />
813 </ div >
914 </ div >
You can’t perform that action at this time.
0 commit comments