tld-fragments.carousel-fragment.xml Maven / Gradle / Ivy
<fragment> <tag> <description>Renders a carousel</description> <display-name>Carousel</display-name> <name>carousel</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.carousel.CarouselTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>Indicates the id for carousel</description> <name>id</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <example> <html:carousel> <html:carouselItem active="true" label="Item 1" description="Description 1"> <html:carouselImage url="https://jslsolucoes.com/wp-content/uploads/logo.png" width="200" height="200" alt="logo"/> </html:carouselItem> <html:carouselItem label="Item 2" description="Description 2"> <html:carouselImage url="https://jslsolucoes.com/wp-content/uploads/logo.png" width="200" height="200" alt="logo"/> </html:carouselItem> </html:carousel> </example> </tag> <tag> <description>Renders a carousel item</description> <display-name>Carousel</display-name> <name>carouselItem</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.carousel.CarouselItemTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>Indicates the label of carousel item</description> <name>label</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the label key (i18n) of carousel item</description> <name>labelKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the description of carousel item</description> <name>description</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the description key (i18n) of carousel item</description> <name>descriptionKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates whether the component must start activated. Default: false. Options: true,false</description> <name>active</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates whether the component should be rendered. Default : true</description> <name>rendered</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <example> <html:carousel> <html:carouselItem active="true" label="Item 1" description="Description 1"> <html:carouselImage url="https://jslsolucoes.com/wp-content/uploads/logo.png" width="200" height="200" alt="logo"/> </html:carouselItem> <html:carouselItem label="Item 2" description="Description 2"> <html:carouselImage url="https://jslsolucoes.com/wp-content/uploads/logo.png" width="200" height="200" alt="logo"/> </html:carouselItem> </html:carousel> </example> </tag> <tag> <description>Renders an carousel image</description> <display-name>Carousel</display-name> <name>carouselImage</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.carousel.CarouselImageTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>Indicates the height component</description> <name>height</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Integer</type> </attribute> <attribute> <description>Indicates the image width</description> <name>width</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Integer</type> </attribute> <attribute> <description>It indicates if the component should be rendered. Default : true</description> <name>rendered</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates the alt of image</description> <name>alt</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates the alt key (i18n) of image</description> <name>altKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates if the component must be loaded from cdn</description> <name>cdn</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>Indicates the image url</description> <name>url</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <example> <html:carousel> <html:carouselItem active="true" label="Item 1" description="Description 1"> <html:carouselImage url="https://jslsolucoes.com/wp-content/uploads/logo.png" width="200" height="200" alt="logo"/> </html:carouselItem> <html:carouselItem label="Item 2" description="Description 2"> <html:carouselImage url="https://jslsolucoes.com/wp-content/uploads/logo.png" width="200" height="200" alt="logo"/> </html:carouselItem> </html:carousel> </example> </tag> </fragment>