Skip to contents

Controls the visible and accessible labels used by photo carousels created when addIndoor() receives a non-empty photos catalogue. Labels can be translated without changing the catalogue.

Usage

indoorPhotoOptions(
  previous_label = "Previous",
  next_label = "Next",
  enlarge_label = "Enlarge",
  close_label = "Close",
  carousel_label = "Room photos",
  dialog_label = "Enlarged room photo",
  counter_label = "Photo {current} of {total}",
  unavailable_label = "Image unavailable"
)

Arguments

previous_label

Label for the previous-photo button.

next_label

Label for the next-photo button.

enlarge_label

Label for the button that opens the current photo and caption in a larger dialog.

close_label

Label for the dialog close button.

Accessible label for the carousel.

dialog_label

Accessible label for the enlarged-photo dialog.

counter_label

Counter template containing {current} and {total}.

unavailable_label

Text shown when an image cannot be loaded.

Value

An object of class leaflet_indoor_photo_options.