10-23-2015 12:52 PM
var exportableSearchForm = {
id: "FCTSRCH_EXPORTABLE_SEARCH_FORM",
name: "js/dcnsgroup/ExportableSearchForm/ExportableSearchForm",
config: {
useHash: true,
okButtonLabel: msg.get("faceted-search.search-form.ok-button-label"),
okButtonPublishTopic : "ALF_SET_SEARCH_TERM",
okButtonPublishGlobal: true,
okButtonIconClass: "alf-white-search-icon",
okButtonClass: "call-to-action",
textFieldName: "searchTerm",
textBoxIconClass: "alf-search-icon",
textBoxCssClasses: "long hiddenlabel",
textBoxLabel: msg.get("faceted-search.search-form.search-field-label"),
queryAttribute: "term",
optionsPublishTopic: "ALF_AUTO_SUGGEST_SEARCH",
optionsPublishPayload: {
resultsProperty: "response.suggestions"
},
/* new form features */
exportButtonLabel: msg.get("export-button-label"),
exportButtonPublishTopic : "ALF_SET_EXPORT_TERM",
exportButtonPublishGlobal: true,
exportButtonIconClass: "alf-white-search-icon",
exportButtonClass: "call-to-action"
}
};
var verticalLayout = widgetUtils.findObject(model.jsonModel, "id", "FCTSRCH_MAIN_VERTICAL_STACK");
verticalLayout.config.widgets.push(exportableSearchForm);
define(
[ "dojo/_base/declare", "alfresco/forms/SingleComboBoxForm",
"dojo/text!./ExportableSearchForm.html", ],
function(declare, SingleComboBoxForm, template) {
return declare(
[ SingleComboBoxForm, template],
{
cssRequirements : [ {
cssFile : "./ExportableSearchForm.css",
mediaType : "screen"
} ],
i18nRequirements : [ {
i18nFile : "./ExportableSearchForm.properties"
} ],
/**
* The HTML template to use for the widget.
*
* @instance
* @type {String}
*/
templateString : template,
/**
* Adds the export button to the form.
*
* @instance
*/
createButtons : function alfresco_forms_ExportableSearchForm__createButtons() {
this.inherited(arguments);
if (this.showExportButton === true) {
var onButtonClass = this.exportButtonClass ? this.exportButtonClass
: "";
this.exportButton = new AlfButton(
{
pubSubScope : this.pubSubScope,
label : this
.message(this.exportButtonLabel),
additionalCssClasses : "confirmationButton "
+ onButtonClass,
publishTopic : this.exportButtonPublishTopic,
publishPayload : this.exportButtonPublishPayload,
publishGlobal : this.exportButtonPublishGlobal,
iconClass : this.exportButtonIconClass
}, this.exportButtonNode);
}
},
});
});
10-27-2015 03:41 PM
03-23-2016 07:20 PM
<package name="example" location="js/example"/>
. I could also use <package name="exampleWidgets" location="js/example"/>
, changing the widget name on the page to "exampleWidgets/somewidget" without generating errors. At first I was reading more into this and confused. Anyway, I can always see my package on the page, in page source.03-31-2016 11:34 AM
04-06-2016 03:33 PM
04-07-2016 02:52 PM
04-08-2016 06:36 PM
04-11-2016 04:02 AM
04-12-2016 09:25 PM
<extension>
<modules>
<module>
<id>ksvrm-alf-installation-share-amp Extension Modules</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<config evaluator="string-compare" condition="WebFramework" replace="false">
<web-framework>
<dojo-pages>
<packages>
<package name="ksvrm" location="js/ksvrm" />
</packages>
</dojo-pages>
</web-framework>
</config>
</configurations>
</module>
</modules>
</extension>
<extension>
<modules>
<module>
<id>Example Aikau Widgets</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<config evaluator="string-compare" condition="WebFramework" replace="false">
<web-framework>
<dojo-pages>
<packages>
<package name="example" location="js/example"/>
</packages>
</dojo-pages>
</web-framework>
</config>
</configurations>
</module>
</modules>
</extension>
<?xml version='1.0' encoding='UTF-8'?>
<page>
<title>Income Reconciliation Page</title>
<description>View, Create and manage Income Reconciliation entries</description>
</page>
<webscript>
<shortname>Income Reconciliation</shortname>
<description>Classification of income according to chart of accounts</description>
<family>share</family>
<url>/ksvrm-income-reconciliation</url>
<authentication>none</authentication>
</webscript>
<@processJsonModel group="share" />
model.jsonModel = {
widgets: [{
id: "SET_PAGE_TITLE",
name: "alfresco/header/SetTitle",
config: {
title: "Income Reconciliation"
}
},{
id: "TEST_KSVRM_WIDGET",
name: "ksvrm/widgets/DateBarDate"
}]
};
.d-bar-date {
width: 30px;
horizontal-align: center;
}
<div class="d-bar-date">
</div>
define(["dojo/_base/declare",
"dijit/_WidgetBase",
"alfresco/core/Core",
"dijit/_TemplatedMixin",
"alfresco/html/Label",
"dojo/text!./templates/DateBarDate.html"
],
function(declare, _Widget, _Templated, template, Core) {
return declare([_Widget, _Templated, Core], {
name: "alfresco/html/Label",
cssRequirements: [{cssFile:"./css/DateBarDate.css",mediaType:"screen"}],
templateString: template,
label: "Test Label Widget"
})
});
04-21-2016 07:01 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.