Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
antd-table-scroll-xaxis-top
Advanced tools
Too much table data ?
Need scroll down too much to scroll to see the scrollbar then move to see the right part of table.
Do not worry, laowang can help you 🤘, just try this one.
Work with antd v3 and v4, automatically!
yarn add antd-table-scroll-xaxis-top
Worked with antd 3 / 4, and react > 16.8
import { Table, Card } from 'antd'
import { AntdTableScrollXaxisTop } from 'antd-table-scroll-xaxis-top'
// ... in compoent
<AntdTableScrollXaxisTop>
<Table scroll={{ x: 'max-content' }} columns={columns} dataSource={dataSource} pagination={false} />
</AntdTableScrollXaxisTop>
<script src="https://unpkg.com/antd-table-scroll-xaxis-top/dist/index.umd.min.js"></script>
Global var name is AntdTableScrollXaxisTop.
The component is a property. Use it this way.
const { AntdTableScrollXaxisTop } = window.AntdTableScrollXaxisTop
So the import way is always
import { AntdTableScrollXaxisTop } from 'antd-table-scroll-xaxis-top'
prop | type | required | description |
---|---|---|---|
prefixCls | string | no | same with antd ConfigProvider prefixCls, unless you have a customized version antd, you should not use it |
debugName | string | no | show some debug info with this for prefix |
children | Table | yes | antd Table, must one and only one Table child |
className and more | no | all div acceptable props can be used |
Why my table does not has xaxis scroll bar after use this?
Set each column with a confirm width, as { title: 'xxx', dataIndex: 'yyy', width: 200 }
Set Table prop scroll
, as scroll={{ x: 'max-content' }}
FAQs
scroll table xaxis at top in ant design
We found that antd-table-scroll-xaxis-top demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.