Galleries
The GalleryBB is used to show a list of elements, such as an array of products, or when info should be displayed in a particular way Each item in the GalleryBB is built using the ItemBuilder.
const complexBB = new ComplexBB();
const ib = new ItemBuilder();
The ItemBuilder is used similarly to the BasicBB, in that a title, text, and Choices can be added They differ in the additional features, such as being able to contain an image, from a URL, and adding a subtitle.
ib.image("<url>")
ib.addSubtitle(Languages.ENGLISH, "subtitle text")
complexBB.pushItem(ib)
If multiple items are added, each of these Items are be displayed in a Carousel, letting the user flip through them like a book, to find what they are looking for.
Last updated