Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

464
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda