Comments (2)
The docs say "If accessor is a string, the property must exist as a direct property on each data item. If a nested or computed property is needed, pass a function accessor."
Something like:
table.column({
header: createRender(Italic, {
text: 'Age',
}),
accessor: (item) => item.info.age,
id: 'age',
}),
from svelte-headless-table.
Marking this as closed, @imsam is right that the function accessor is what you need.
from svelte-headless-table.
Related Issues (20)
- Missing modules in 0.18.0 HOT 8
- Cannot find module 'svelte-headless-table/plugins' or its corresponding type declarations on version 0.18.1 HOT 6
- Sveltekit | "moduleResolution": "Bundler" | Cannot find module 'svelte-headless-table/dist/plugins' or its corresponding type declarations. HOT 3
- createRender onClick not updating with new data HOT 1
- Feature Request: allow sort order to be set as an alternative to toggle HOT 2
- wrapping svelte-headless-table into a component produces an error HOT 1
- BUG: addColumnFilters() not working HOT 1
- Plugin: Resize columnWidth values break when data Promise is resolved HOT 1
- Feature Request: Make `addResizeColumns` more flexible HOT 1
- Feature Request: Cell/Header Attributes HOT 3
- Bug: Issues adjusting table size when rows are expanded
- Race condition between the `groupBy` plugin and svelte rerender HOT 1
- serverItemCount is undefined HOT 2
- Additional columns from a child array
- initialHiddenColumnIds not working HOT 2
- Add Client side lazy load on scroll. HOT 1
- Colspan for Body Cells - workaround with a custom cell ?
- How to change sub rows rowDataId ? HOT 2
- Doc: Index the documentation and add a search box to navigate the website quickly HOT 1
- Re-rendering addResizedColumns BUG
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 svelte-headless-table.