public class AmpCarousel extends AmpComponent
Component allows displaying multiple similar pieces of content along a horizontal axis.
Constructor and Description |
---|
AmpCarousel(int width,
int height)
Create instance of form AmpCarousel.
|
Modifier and Type | Method and Description |
---|---|
List<AmpImage> |
getImages()
Set of images for displaying.
|
String |
getRequiredScript()
Required script that muct be added to head section.
|
int |
getType()
Specifies the display type for the carousel items.
|
void |
setType(int value)
Specifies the display type for the carousel items.
|
String |
toAmpHtml()
Represents amp html version of component.
|
String |
toHtml()
Represents html version of component.
|
getAttributes, getFallback, getPlaceholder, setFallback, setPlaceholder
public AmpCarousel(int width, int height)
Create instance of form AmpCarousel.
width
- width of AmpCarouselheight
- height of AmpCarouselpublic final int getType()
Specifies the display type for the carousel items.
public final void setType(int value)
Specifies the display type for the carousel items.
public String getRequiredScript()
Required script that muct be added to head section.
getRequiredScript
in class AmpComponent
public String toAmpHtml()
Represents amp html version of component.
toAmpHtml
in class AmpComponent
public String toHtml()
Represents html version of component.
toHtml
in class AmpComponent