You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are implementing the standard UX using the PrestUI library. We are showing a table using the example of github (https://github.com/Scritik/prestui/wiki/Tables) but the table does not show the rows; it only shows the header. Debbugging the code for displaying the table (ps-table.tpl) we found that the error should be on the line 66:
Specifically in the loop columns nested within the loop of the rows. The variable this.columns_keys is apparently being ignored because is nested within a loop. If we change the variable this.columns_keys and we put the variable row in its place, declared in the upper loop, the rows of the table are shown.
This also happens with the action buttons for each row. The condition of the line 69 (if={ this.primary_action }) is always false because that variable seems not to exist in that loop.
We would appreciate a more extensive documentation and examples of PrestUI to display tables.
The text was updated successfully, but these errors were encountered:
Can you show me a PHP sample to reproduce you bug? I'm using ps-table in several modules and I don't have any issue with it and I can't really understand exactly where is this issue.
Also, can you test with the dev branch? I have recently made a patch on empty tables but if I understand well you case, this is not the solution to your problem.
Regarding the documentation, what do you need more? You have a PHP sample on how to create the array and then a Smarty sample to display the array.
We are implementing the standard UX using the PrestUI library. We are showing a table using the example of github (https://github.com/Scritik/prestui/wiki/Tables) but the table does not show the rows; it only shows the header. Debbugging the code for displaying the table (ps-table.tpl) we found that the error should be on the line 66:
Specifically in the loop columns nested within the loop of the rows. The variable this.columns_keys is apparently being ignored because is nested within a loop. If we change the variable this.columns_keys and we put the variable row in its place, declared in the upper loop, the rows of the table are shown.
This also happens with the action buttons for each row. The condition of the line 69 (if={ this.primary_action }) is always false because that variable seems not to exist in that loop.
We would appreciate a more extensive documentation and examples of PrestUI to display tables.
The text was updated successfully, but these errors were encountered: