Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123456641
Table.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 27, 12:51
Size
1 KB
Mime Type
text/x-java
Expires
Tue, Jul 29, 12:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27705140
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Table.js
View Options
import
classNames
from
'classnames'
;
import
*
as
React
from
'react'
;
import
{
useBootstrapPrefix
}
from
'./ThemeProvider'
;
import
{
jsx
as
_jsx
}
from
"react/jsx-runtime"
;
const
Table
=
/*#__PURE__*/
React
.
forwardRef
(({
bsPrefix
,
className
,
striped
,
bordered
,
borderless
,
hover
,
size
,
variant
,
responsive
,
...
props
},
ref
)
=>
{
const
decoratedBsPrefix
=
useBootstrapPrefix
(
bsPrefix
,
'table'
);
const
classes
=
classNames
(
className
,
decoratedBsPrefix
,
variant
&&
`
$
{
decoratedBsPrefix
}
-
$
{
variant
}
`
,
size
&&
`
$
{
decoratedBsPrefix
}
-
$
{
size
}
`
,
striped
&&
`
$
{
decoratedBsPrefix
}
-
$
{
typeof
striped
===
'string'
?
`
striped
-
$
{
striped
}
`
:
'striped'
}
`
,
bordered
&&
`
$
{
decoratedBsPrefix
}
-
bordered
`
,
borderless
&&
`
$
{
decoratedBsPrefix
}
-
borderless
`
,
hover
&&
`
$
{
decoratedBsPrefix
}
-
hover
`
);
const
table
=
/*#__PURE__*/
_jsx
(
"table"
,
{
...
props
,
className
:
classes
,
ref
:
ref
});
if
(
responsive
)
{
let
responsiveClass
=
`
$
{
decoratedBsPrefix
}
-
responsive
`
;
if
(
typeof
responsive
===
'string'
)
{
responsiveClass
=
`
$
{
responsiveClass
}
-
$
{
responsive
}
`
;
}
return
/*#__PURE__*/
_jsx
(
"div"
,
{
className
:
responsiveClass
,
children
:
table
});
}
return
table
;
});
export
default
Table
;
Event Timeline
Log In to Comment