Comments (3)
I use this library for paginated data. The key thing to recognize is the data is not part of the state of the table, it's passed in in the view function. It belongs to your application, so it can be updated however you want it to be, and the displayed table will update accordingly. Likewise, 'page state' is external to the Table model. A pagination control or display isn't the responsibility of this library to render. Or are you saying you need page state to be rendered inside a table?
As for 'in-table' updating, you'd want to look at defining your columns with veryCustomColumn
, and making sure each row of data you pass in has some kind of unique id, so you can build the row update msgs in your onInput
, etc. handlers.
from elm-sortable-table.
Pagination takes place in the Table Itself.
I mean, the table require all the elements in a list so it can traverse between pages. As far as I know there's no method or message that let the caller know if a new page has been requested or not.
TableState it's an opaque type, meaning it's attributes are private :/
from elm-sortable-table.
Think of the table as showing just a single page. You need to maintain the list of pages and their content in some other way, and just feed the list of items you want to show right now to the Table.view
function.
from elm-sortable-table.
Related Issues (20)
- add ability to show/hide columns HOT 1
- Columns with HTML content HOT 1
- fixed column widths HOT 4
- Missing tr inside thead HOT 5
- TabBar
- Accessing the sorted rows HOT 2
- Add support for ThAttrs HOT 1
- Table rows are mis-ordered HOT 4
- Wrap row view? HOT 1
- Unsafe column identification HOT 2
- Style table HOT 1
- Custom Sorters
- Pagination HOT 2
- examples in Table.elm link to wrong repo HOT 1
- Stable sort HOT 4
- Upgrade for 0.19 HOT 1
- Storing the table state in the URL: Make Table.State non-opaque? HOT 1
- Publish 1.0.1? HOT 1
- Allow reversed initial sort HOT 7
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 elm-sortable-table.