tld-fragments.grid-fragment.xml Maven / Gradle / Ivy
<fragment> <tag> <description>Renders a grid</description> <display-name>Grid</display-name> <name>grid</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>It indicates the collection to be iterated by the component. Supports arrays of objects, Maps, Collections and single objects thats is converted to Collection using immutable Arrays.asList(...).</description> <name>data</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Object</type> </attribute> <attribute> <description>It indicates the name of the variable java to be made available the object of iteration</description> <name>var</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates the name of the variable to be available to current iteration</description> <name>varStatus</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the label component</description> <name>label</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the label key (i18n)</description> <name>labelKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the url component a ser utilizada caso haja paginação</description> <name>url</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> <attribute> <description>Indicates the component title when there are no lines available</description> <name>noRowText</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the component title key (i18n) when there are no lines available</description> <name>noRowTextKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid paginate data</description> <display-name>Grid</display-name> <name>gridPaginate</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridPaginateTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>Indicates the total number of records in component</description> <name>totalResults</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.Integer</type> </attribute> <attribute> <description>It indicates the default number of results per page. Default: 60. Options: 20,40,60,80,100</description> <name>resultsPerPage</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Integer</type> </attribute> <attribute> <description>It indicates the size of pagination block on the left and right from the current page. Default: 4</description> <name>range</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Integer</type> </attribute> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid search data</description> <display-name>Grid</display-name> <name>gridSearch</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridSearchTag</tag-class> <body-content>scriptless</body-content> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid export data</description> <display-name>Grid</display-name> <name>gridExport</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridExportTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>It indicates if timestamp must be added to fileName export. Default: true</description> <name>timestamp</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates the pattern of appended file. Default: dd/MM/yyyy HH:mm:ss</description> <name>pattern</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates the final name of the exported file. Default: data.(csv,xml,pdf,xlsx)</description> <name>filename</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates the final name (i18n) of the exported file.</description> <name>filenameKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>It indicates if export support pdf file. Default: true</description> <name>pdf</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates if export support xlsx file. Default: true</description> <name>xlsx</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates if export support csv file. Default: true</description> <name>csv</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates if export support xml file. Default: true</description> <name>xml</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid header</description> <display-name>Grid</display-name> <name>gridHeader</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridHeaderTag</tag-class> <body-content>scriptless</body-content> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid header column</description> <display-name>Grid</display-name> <name>gridColumn</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridColumnTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>It indicates whether the column should be exported</description> <name>exportable</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>Indicates the alignment of the content. Default: left. Options: left, center, right</description> <name>align</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the label component</description> <name>label</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the label key (i18n) component</description> <name>labelKey</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid body</description> <display-name>Grid</display-name> <name>gridBody</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridBodyTag</tag-class> <body-content>scriptless</body-content> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid body footer</description> <display-name>Grid</display-name> <name>gridFooter</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridFooterTag</tag-class> <body-content>scriptless</body-content> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid data column</description> <display-name>Grid</display-name> <name>gridColumnData</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridColumnDataTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>It indicates a type format in which the value must be converted. Default options: date,datetime, timestamp, hour, currency, zipCode, cnpj, tel, cpf</description> <name>formatter</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the alignment of the content. Default: left. Options: left, center, right</description> <name>align</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the component state. Default: default. Options: danger, info, success, default</description> <name>state</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 column should be collapsable. Default false</description> <name>collapsable</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <attribute> <description>It indicates whether the column should be exported. Default false</description> <name>exportable</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.Boolean</type> </attribute> <example> <html:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> <tag> <description>Renders a grid toolbar</description> <display-name>Grid</display-name> <name>gridToolbar</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.grid.GridToolbarTag</tag-class> <body-content>scriptless</body-content> <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:grid var="person" data="${ persons }" label="My grid"> <html:gridExport/> <html:gridPaginate totalResults="${ totalResults }"></html:gridPaginate> <html:gridSearch/> <html:gridToolbar> <html:alert state="danger">my toolbar</html:alert> </html:gridToolbar> <html:gridHeader> <html:gridColumn label="Column 1" align="left" exportable="true"></html:gridColumn> <html:gridColumn label="Column 2" align="center" exportable="true"></html:gridColumn> <html:gridColumn label="Column 3" align="center" exportable="true"></html:gridColumn> </html:gridHeader> <html:gridBody> <html:gridColumnData align="right" exportable="true"> ${ person.name } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" > ${ person.likeChocolate } </html:gridColumnData> <html:gridColumnData align="center" exportable="true" collapsable="true"> ${ person.cpf } </html:gridColumnData> </html:gridBody> </html:grid> </example> </tag> </fragment>