…
<div class="yui-u align-right">
<span id="${el}-export-excel-button" class="yui-button yui-push-button exportToExcel-icon">
<span class="first-child">
<button type="button">${msg('button.exportToExcel')}</button>
</span>
</span>
</div>
…
…
.search .exportToExcel-icon span.first-child
{
background: url(../images/exportToExcel-icon.png) no-repeat 12px 4px;
padding-left: 24px;
}
…
this.widgets.exportExcelButton = Alfresco.util.createYUIButton(this, "export-excel-button", this.exportToEXCEL());
search.js
en el archivo search-min.js
de manera que ambos contenidos sean idénticos.
var options =
{
datatable: // your YUI datatable object
includeLastColumn: true/false
};
// DataTable definition
this.widgets.dataTable = new YAHOO.widget.DataTable(this.id + "-postlist", columnDefinitions, this.widgets.dataSource,
{
initialLoad: false,
dynamicData: true,
MSG_EMPTY: this._msg("message.loading")
});
Alfresco.Search = function (htmlId) {
Alfresco.Search.superclass.constructor.call(this, "Alfresco.Search", htmlId, ["button", "container", "datasource", "datatable", "paginator", "json"]);
// Decoupled event listeners
YAHOO.Bubbling.on("onSearch", this.onSearch, this);
return this;
};
YAHOO.extend(Alfresco.Search, Alfresco.component.SearchBase,
{
/**
* Object container for initialization options
*
* @property options
* @type object
*/
options: {
datatable: new YAHOO.widget.DataTable(this.id + "-0", columnDefinitions, this.widgets.dataSource,
{
initialLoad: false,
dynamicData: true,
MSG_EMPTY: this._msg("message.loading")
}),
….
….
….
….
….
options: {
datatable:this.widgets.datatable,
includeLastColumn: true
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.