tld-fragments.img-fragment.xml Maven / Gradle / Ivy
<fragment> <tag> <description>Renders an image</description> <display-name>Image</display-name> <name>img</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.img.ImageTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>It indicates the label if the component can not be loaded</description> <name>alt</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates the label key (i18n) if the component can not be loaded</description> <name>altKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates whether the component must follow a set on the properties cdn</description> <name>cdn</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates whether the component must load lazy.Default true</description> <name>lazy</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates whether the component should be responsive</description> <name>responsive</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> <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 a format for the component. Options: rounded, circle, thumbnail</description> <name>shape</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates a CSS class to the component</description> <name>cssClass</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates whether the component should be rendered</description> <name>rendered</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <example> <html:img url="/image/person.png" alt="logo" responsive="true"/> </example> </tag> <tag> <description>Renders an icon</description> <display-name>Image</display-name> <name>icon</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.img.IconTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>Indicates the icon to be used. available list https://fontawesome.com/icons</description> <name>icon</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the id for the component</description> <name>id</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</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:icon icon="cog"/> </example> </tag> </fragment>