Hi, When I try to use 'Column' property with Data...
# troubleshooting
c
Hi, When I try to use 'Column' property with DataTable from the example, I get an error that 'Column' is not defined in the terminal logs and then all the rows are displayed in the webpage. How do I resolve this?
g
Hi Shaheen - this is our most recent feature addition, so you'll need to be on the newest version of Evidence. If you run
npm update
in your project, that should get it working. Let me know if that doesn't work
c
Thanks for the update. Can you please let me know the command to check the current version of Evidence running?
g
You can use
npm view @evidence-dev/evidence version
c
Thanks, the above command worked perfectly.
Also I wanted to display more than 5 rows in the SQL preview block but couldn't find how to do that. Can you please let me know how to do that.
g
Unfortunately it’s not possible to do in the preview - you could use the DataTable component and set the number of rows you would like to display
c
Okay. Thanks. On another note, do you in future releases, plan to implement any such option?
b
This feature is now released!
c
Yes, the DataTable component is available, also it is well documented and I am using it. Thanks for that. I was asking about whether any feature is in pipeline for increasing the SQL preview block row size in future releases.
b
Ah sorry, I see that now. We haven't planned any changes to the SQL preview block, but that doesn't mean we wont - we're always open to improving the UX! Could give us a sense of what you are trying to achieve overall, whereby more rows of data would help?
c
In my view, having additional rows of data would be beneficial in situations where we need to quickly run queries and view the results within the default preview block. Additionally, it would be helpful when displaying a single value in a text sentence and still being able to view the results in the preview block without using a DataTable, providing more flexibility.
🙏🏼 1