Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table_view_builder #5

Closed
tmnyoni opened this issue Jul 8, 2021 · 1 comment
Closed

table_view_builder #5

tmnyoni opened this issue Jul 8, 2021 · 1 comment

Comments

@tmnyoni
Copy link
Contributor

tmnyoni commented Jul 8, 2021

the table_view_builder takes some time to render data after pushing a row into the table using the push_back function.

like so:

widgets::table_view_builder::specs(*this, main_page_name_ + "/main_tab/coupons/coupons_table")
.data().push_back({ { "#", "7"}, {"Date", "10-June-20"}, {"Issued to", "new"}, {"Serial Number", "added-for-testing"}});

And if you using values that are determined on runtime, the table sometimes doesn't render the data.

@alecmus
Copy link
Owner

alecmus commented Jul 8, 2021

According to the documentation, after making changes to UI elements you need to call the .update() method of the form class for the changes to be reflected as soon as possible, otherwise they will only come into effect the next time you move your mouse over the form or the next time a timer is called etc. Therefore, call the update() method explicitly.

@tmnyoni tmnyoni closed this as completed Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants