Comments (2)
Hey @linmasahiro is it possible to have a hidden column? A column that is not visible in the table but whose data can be used in a v-slot for example. This will prevent the need for hitting the server api again just to get details for example which I want in a hover over my summary field. Details is not shown in the Table columns but that data should be available to be used.
Yes, and very easy, don't add to table.columns
only.
table.columns
are always be show, and table.rows
are records nothing to do with display.
<table-lite
:is-static-mode="true"
...
>
<template v-slot:summary="data">
<span>{{ data.value.aaa }}</span>
</template>
</table-lite>
......
// This is your data from API
const data = reactive([]);
for (let i = 0; i < 126; i++) {
data.push({
id: i,
summary: "TEST" + i,
aaa: "Hidden" + i
});
}
// Table config
const table = reactive({
columns: [
{
label: "ID",
field: "id",
width: "3%",
sortable: true,
isKey: true,
},
{
label: "Summary",
field: "summary",
width: "10%",
sortable: true,
},
],
......
});
......
from vue3-table-lite.
Great, data was all there, no extra actions needed. Thanks!
from vue3-table-lite.
Related Issues (20)
- selected rows are not updated immediately after rows are updated HOT 5
- Checked rows always return undefined after paging (Only「checked-return-type」 is 'row') HOT 1
- Unchecking rows(s) HOT 2
- Multiple fixed columns HOT 3
- Header's first column is always fixed on horizontal scrolling
- Unable to get table width to be responsive and fixed first column in table header not fixed HOT 18
- Sortable function doesn't work with grouping key HOT 2
- Links under slot mode stopped working in 1.3.2 HOT 1
- checking rows doesn't work in 1.3.2 and 1.3.3 HOT 1
- Return duplicated value on「return-checked-rows」event HOT 1
- click event not handled in tableLoadingFinish function HOT 2
- Static mode pagination not working as expected HOT 3
- Is it possible to add 'return clearChecked' if 'hasCheckbox'?
- Is it possible to add 'return clearChecked' if 'hasCheckbox'? HOT 6
- Bug when dynamically showing checkboxes HOT 1
- Grouping with toggle like a treeview inside table ? HOT 4
- [OTHERS] Call a Function inside of display property for a button HOT 12
- Unchecking row returns old value HOT 5
- Examples not compatible with latest version of vue3 and node18 HOT 1
- Allow HTML in header HOT 4
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 vue3-table-lite.