Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

199
Vistas
How to use timeline_item.add content field to use a repeating image Vis.js Timeline

I have been using the timeline_item add function with content field to represent the element with a image. It works fine.

timeline_items.add({
    id                        : entity_id,
    group                     : "timeline_group_id",
    start                     : start_date,
    end                       : end_date,
    content                   : "<img src='" + element_src_link + "'></img>",
    className                 : 'timeline-imagecontainer',
});

However, although I explicitly define a className, that does not help with the style properties of the image.

The images shows as below :

enter image description here

How can I :

  • keep aspect ratio
  • fit the image to timeline element
  • use it repeating background for the element
  • keep element height fixed to a value of 60px

I want to have a repeating background with the img inside the timeline element.

How can I achieve this ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda