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

185
Visualizações
How to add custom functionality in shepherd

how to add custom functionality on next button of shepherd? I need to add GA events on shepherd pop up box but not able to find how to add an event on click of next button please someone Help

export const builtInButtons = {
  cancel: {
    classes: 'btn-purple-bg me-2 mt-2 sfpro-regular sepheredDone',
    secondary: true,
    text: '<span class="button-text">Done</span>',
    type: 'cancel',
  },
  next: {
    classes: 'btn-purple-bg me-2 mt-2 sfpro-regular',
    text: '<span class="button-text">Next</span>',
    type: 'next',
    
  },
  back: {
    classes: 'btn-purple-bg me-2 mt-2 sfpro-regular',
    secondary: true,
    text: '<span class="button-text">Previous</span>',
    type: 'back',
  },
  stepOne: {
    classes: 'sfpro-regular me-2 mt-2 sepheredStep',
    secondary: true,
    text: '<span type="text" class="sfpro-regular opacity-90 fs-14px ls-28 m-sm-2 ">1 of 6</span>',
  },
  stepTwo: {
    classes: 'sfpro-regular me-2 mt-2 sepheredStep',
    secondary: true,
    text: '<span type="text" class="sfpro-regular opacity-90 fs-14px ls-28 m-sm-2 ">2 of 6</span>',
    type: 'back',
  },
  stepThree: {
    classes: 'sfpro-regular me-2 mt-2 sepheredStep',
    secondary: true,
    text: '<span type="text" class="sfpro-regular opacity-90 fs-14px ls-28 m-sm-2 ">3 of 6</span>',
    type: 'back',
  },
  stepFour: {
    classes: 'sfpro-regular me-2 mt-2 sepheredStep',
    secondary: true,
    text: '<span type="text" class="sfpro-regular opacity-90 fs-14px ls-28 m-sm-2 ">4 of 6</span>',
    type: 'back',
  },
  stepFive: {
    classes: 'sfpro-regular me-2 mt-2 sepheredStep',
    secondary: true,
    text: '<span type="text" class="sfpro-regular opacity-90 fs-14px ls-28 m-sm-2 ">5 of 6</span>',
    type: 'back',
  },
  stepSix: {
    classes: 'sfpro-regular me-2 mt-2 sepheredStep',
    secondary: true,
    text: '<span type="text" class="sfpro-regular opacity-90 fs-14px ls-28 m-sm-2 ">6 of 6</span>',
    type: 'back',
  },
};

export const defaultStepOptions: Step.StepOptions = {
  classes: 'shepherd-theme-arrows custom-default-class',
  scrollTo: { behavior: 'smooth', block: 'center' },
  cancelIcon: {
    enabled: true,
  },
};
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