Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

461
Views
How do I add Tableau Javascript to Typescript in SharePoint SPFx

I'm tasked with adding Tableau-generated javascript embed code to a SharePoint SPFx single part app, and assume the issue I'm having (with nothing showing up) is because of the Javascript in the middle of my "HTML DOM innerHTML Property".

As I'll have several additional workbooks to deploy, I'm hoping to add the JS reference to the same TS file. How would you do it?

  
  public render(): void {
    this.domElement.innerHTML = `
  <div class="${ styles.myCoolSinglePartPage }">
  <div class="${ styles.container }">
  <div class="${ styles.row }">
  <div class="${ styles.column }">
  <span class="${ styles.title }">Tableau Test 9</span>
  <p class="${ styles.subTitle }">SIGH!</p>
  <p class="${ styles.description }">${escape(this.properties.description)}</p>
  </div>
  </div>

  <script type='text/javascript' src='https://tableauprod.prod.redacted.org/javascripts/api/viz_v1.js'></script>

    <div class='tableauPlaceholder' style='width: 1200px; height: 900px;'>
      <object class='tableauViz' width='1500' height='900' style='display:none;'>
      <param name='host_url' value='https%3A%2F%2Ftableauprod.prod.redacted.org%2F' /> 
      <param name='embed_code_version' value='3' /> 
      <param name='site_root' value='' />
      <param name='name' value='StrategyLandingPage&#47;FiveYearStrategicPlanning' />
      <param name='tabs' value='no' />
      <param name='toolbar' value='yes' />
      <param name='display_count' value='n' />
      <param name='origin' value='viz_share_link' />
      <param name='showAppBanner' value='false' />
      </object>
    </div>

  </div>
  </div>`;
  }

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!