Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ICAT
Datahub
Commits
9812eaf8
Commit
9812eaf8
authored
Jun 30, 2021
by
Marjolaine Bodin
Browse files
#507
remote as prop
parent
9410f400
Pipeline
#49598
passed with stage
in 2 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/Investigation/InvestigationTable.js
View file @
9812eaf8
...
...
@@ -275,16 +275,17 @@ function InvestigationTable(props) {
startValue
=
{
startDate
}
onStartDayChange
=
{
handleStartDateChange
}
onStartClear
=
{
handleStartDateClear
}
startPlaceHolder
=
{
'
startD
ate
'
}
startPlaceHolder
=
{
'
Filter between d
ate
s
'
}
endValue
=
{
endDate
}
onEndDayChange
=
{
handleEndDateChange
}
onEndClear
=
{
handleEndDateClear
}
endPlaceHolder
=
{
'
endD
ate
'
}
endPlaceHolder
=
{
'
Filter between d
ate
s
'
}
showStatisticsMenu
=
{
showStatisticsMenu
}
instrumentName
=
{
instrumentName
}
/
>
<
/div
>
<
ResponsiveTable
remote
=
{
true
}
data
=
{
data
}
pageOptions
=
{{
showTotal
:
true
,
...
...
src/components/Table/ResponsiveTable.js
View file @
9812eaf8
...
...
@@ -52,6 +52,7 @@ export default function ResponsiveTable(props) {
rowEvents
,
rowClasses
,
delay
,
remote
=
false
,
}
=
props
;
function
onColumnMatch
({
searchText
,
value
,
column
,
row
})
{
...
...
@@ -75,6 +76,17 @@ export default function ResponsiveTable(props) {
}
}
const
remoteProps
=
remote
?
{
remote
:
{
filter
:
true
,
pagination
:
true
,
sort
:
true
,
cellEdit
:
false
,
},
}
:
{};
return
(
<
ToolkitProvider
keyField
=
{
keyField
||
'
id
'
}
...
...
@@ -113,7 +125,7 @@ export default function ResponsiveTable(props) {
<
/div
>
<
/div
>
<
BootstrapTable2
remote
{...
remote
Props
}
pagination
=
{
paginationFactory
(
pageOptions
)}
onTableChange
=
{
handleTableChange
}
striped
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment