Buttons created by components, buttons acting out of component and refresh datatable #243
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Adam,
I have found three issues while using Unicorn, so may I ask you about them, please?
You find my code in add-flavor, add-taste and very far button components (.hmtl + .py), and you can see them executed in Dynamic Load errors page.
Buttons created by components: Try to add a new flavor (use button "Create New Flavor"). You see appear them in the datatable with an "Add taste" button on the side, that adds new tastes to the database. Try to click on "Add Taste" on a Flavor you created with my button, and you will see that it wont work until you refresh page.
Buttons acting out of component: You see the very far button "Create New Flavor in a very far datatable" in the bottom on the page? It should do the same as the "Create New flavor" above, but the problem is that it belongs to another component, because for design reasons I wish to have the button located in the bottom of the page.
This is just an extreme example, but actually in order to have a good looking page sometimes we need to locate buttons away from their component location. So, buttons of a component that acts on other components could be a solution? Or maybe being able to choose where to locate component items.
Refresh Datatable: When you launch the page the datatable is refreshed by a javascript called "dt_refresh".
However, once DOM and components are loaded, refresh_dt no longer works (try to execute the javascript via the button "Refresh datatable", in the top of the page).
Javascripts continue to work, as the alert message can confirm , but the dt refresh does not.
Do you have any idea on how to solve these problems?
Hope that the example I made for showing you the issues and my explanations are clear and simple.
Thanks for all the support you give and all the work you do.