OverviewSince 4.2 EE The ace:listExporter component is a utility to export data from an ace:list component as an Excel, PDF, XML or CSV document. This component renders an HTML button. More components and HTML elements can be nested inside this tag to give a different look to the button..
Getting StartedIn most cases, it's enough to add the tag on the page without any configuration. <html ... xmlns:ace="http://www.icefaces.org/icefaces/components"> <h:body> <h:form> <ace:list id="myList/> <ace:listExporter label="Export File" type="csv" target="myList" fileName="data"/> </h:form> </h:body> </html> Attributes
target: Define the id of the ace:list component whose data will be exported. type: Define the format of file export. Available formats: "xls", "xlsx", "pdf", "csv", and "xml". fileName: Define the filename of the generated file, defaults to the target id. label: Define the text that will appear on the button to trigger the export. Default value is 'Export'. This attribute applies only if the component has no children. selectedItemsOnly: Enable to export only the currently selected list items instead of the whole data set. Client Behavior Events
Javascript APIICEfaces 4+The "widgetVar" attribute on the ACE components has been removed in ICEfaces 4 and in its place a new "ice.ace.instance()" client JavaScript object lookup API has been introduced. The reason for this change is to enable lazy-initialization of the ACE component JavaScript objects to improve runtime performance and reduce browser memory use. var widget = ice.ace.instance('frm:componentId);
Keyboard and ARIA SupportNot supported at the moment. Known IssuesNone at the moment. |
ListExporter
© Copyright 2021 ICEsoft Technologies Canada Corp.