auto-web.components.v-selector

Selector of items

relative-jump

(relative-jump n val v)

Current element v is move to val page forward (if positive, backward if negative).

The resulting value is clamped between 0 and n

v-selector

(v-selector n selected opts-go-to opts-go-rel)

A selector showing all the n items, all clickable to jump to that position.

That buttons are rounded with previous and next buttons.

  • n is the number of items
  • selected is the number of the item to show
  • opts-go-to returns opts to the create a tag moving to an absolute position
  • opts-go-rel returns opts to create a tag relatively moving