Giter VIP home page Giter VIP logo

Comments (4)

OvidijusParsiunas avatar OvidijusParsiunas commented on May 28, 2024

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.

dmiric avatar dmiric commented on May 28, 2024

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.

OvidijusParsiunas avatar OvidijusParsiunas commented on May 28, 2024

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.

OvidijusParsiunas avatar OvidijusParsiunas commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.