Comments (4)
@dkluhzeb thanks for pointing this out! I'll take a look and see about including a reference to the underlying VariableSizeList.
Another option I may consider is to give access to the scrollToItem method itself, for simplicity's sake
from react-fluid-table.
@mckervinc thanks!
Sure this would be a cleaner solution. More to maintain, but way more stable.
from react-fluid-table.
@mckervinc any updates here? After the rowRenderer
and rowStyle
updates, a ref to the List component is the last bit of functionality I would need to delete my forkπ
Edit:
Actually, with customHeaders now supported I might not need the ref anymore. Will update back here once I look into it.
from react-fluid-table.
@dkluhzeb @colemars you should now be able to pass a ref through to the component as of version 0.4.1
.
i.e like so:
const Example = () => {
const ref = useRef(null);
const [number, setNumber] = useState(0);
const onSubmit = useCallback(() => ref.current.scrollToItem(number), [number]);
return (
<div>
<input type="number" value={number} onChange={e => setNumber(parseInt(e.target.value)} />
<button onClick={onSubmit}>Click here</button>
<Table ref={ref} data={data} columns={columns} tableHeight={400} />
</div>
);
};
from react-fluid-table.
Related Issues (16)
- Add Custom Row Styling HOT 1
- Need for Row Component to enhance row events HOT 4
- Row is re-mounting on resize. HOT 4
- Table rowHeight HOT 2
- How to custom column alignment ? HOT 3
- Infinite Loading HOT 2
- Possible to support min-width on rows? HOT 1
- Re-size table when a parent component changes HOT 1
- Question: unable to add additional styles to a row HOT 1
- Question: is there a way to prevent the table from scrolling back to the top when it is re-rendered? HOT 2
- Is there a way to freeze the first column HOT 1
- No support for no table height HOT 2
- No support for custom columnn HOT 2
- Sticky Footer HOT 11
- Sorting function is using stale data prop HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-fluid-table.