auto-web.components.v-img

An img is made of:

  • url is where the img is stored
  • alt what is displayed if image can’t display or for accessibility
  • name
  • href where click will lead to, could be nil
  • label text to display below the img (optional).
  • width-kw width of the picture, :full is taking the whole width, other are using predefined-size
  • class is a string that can be added to the img’s class.

v-icon-img

(v-icon-img img)

An img that looks like an icon

v-img

(v-img img width-kw & opts)

Display an img with its label:

See auto-web.components.v-img for options.

v-labelled-img

(v-labelled-img img width-kw & opts)

Display an img with a label.

  • url is where the img is stored
  • href-link where click will lead to, could be nil
  • label text to display below the img.
  • width-kw width of the picture, :full is taking the whole width, other are using predefined-size
  • class is a string that can be added to the img’s class.

validate-img-schema

(validate-img-schema img)