Skip to content

add finos perspective #1696

Answered by mturoci
Khalilsqu asked this question in Q&A
Nov 13, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @Khalilsqu!

First, you need to correctly define your targets in ui.inline_script. It needs an ID of element into which you would like to render your table. perspective-viewer is not an ID, so the script cannot continue. So the fix is using

html = '''
<div id="perspective-viewer-id"></div>
'''

instead of

html = '''
<perspective-viewer></perspective-viewer>
'''

Once done, the next problem is with your JS code. I see that you just copy-pasted it from the perspective docs, but the code makes use of modern top level await feature, which requires a script to be loaded as module. Wave doesn't allow loading scripts as modules yet (tracked in #1697). No worries though, there is a simple workaro…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Khalilsqu
Comment options

Answer selected by Khalilsqu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants