Comments (4)
Hi @dmiric.
Active Table does not allow new properties to be set/changed after the table has rendered - this has been done to minimize the amount of times the component needs to re-render and for ease of maintenance purposes. Therefore, when you set the
customColumnTypes
property later, it does not take effect.
The best way to solve this issue is to render Active Table only when the data required has been downloaded. Assuming that you are using vanilla js, this can be achieved by using a container element:
<div id="container-element"></div>
And then adding it in your javascript as:
const activeTable = document.createElement('active-table');
document.getElementById('container-element').appendChild(activeTable);
Let me know if this helps you. Thanks!
from active-table.
Umm ok I'll try that. Still it would be good to be able to refresh items in select. That must be a very common use case.
Thank you tho.
from active-table.
When initially designing the component I did not anticipate that its configuration (a part from data) may need to be changed dynamically, hence I optimised it to be rendered once.
I think you are right that sometimes the configuration may need to be changed during a session. Active Table is updated continuously, hence I will explore this option in the future. Thankyou for your feedback!!
from active-table.
I will close this issue, if you need any further assistance in this matter you can comment below and for everything else feel free to create a new issue. Thanks!
from active-table.
Related Issues (20)
- Is it possible to translate the table elements? HOT 2
- Searching select box HOT 1
- any interface to change ui label in another language HOT 3
- Cannot get basic example running HOT 12
- Using active-table in a Flask app HOT 3
- CSV import doesn't support escaped commas HOT 1
- JS table data not captured HOT 1
- Cannot find module error while compiling HOT 6
- how to sponsor HOT 2
- Embedding custom HTML inside table cells HOT 2
- Provide display options for columnType HOT 6
- not explaining the usage process HOT 4
- 'cell-update' event seems to return wrong details
- navigator is not defined when using with NextJs HOT 5
- Table becomes laggy when displaying a long table HOT 1
- ERROR: ResizeObserver loop completed with undelivered notifications.
- Restoring table with column types
- CSV export is missing formatting options to be useful
- Improvement Suggestion: Change Cursor Type for Non-Editable Select Cells
- Custom buttons
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 active-table.