<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Aikau Widget Function Signatures in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/aikau-widget-function-signatures/m-p/296109#M249239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure I understand the question. The functions given as examples are not constructors of widget instances - they are merely the module definition and factory functions that are used to define and initialise the module within the module system. Those are never directly called by any client code that you write based on Aikau. Their signature depends on the list of dependencies they need to pull in and the set of base modules / classes they need for defining their specific module / class via declare.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The signature for any widget constructor in Aikau is always the same - it is 'function(params)' where params is a simple object / hash of all the configuration properties you want to set on the widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But generally speaking you should also (almost) never call a widget constructor directly. Widget construction can be delegated to functions from Aikau mixins such as CoreWidgetProcessing#processWidgets (or #createWidget). This ensures widgets are instantiated uniformly and avoids any issues with you forgetting to include a common parameter / property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 07:18:29 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2016-05-09T07:18:29Z</dc:date>
    <item>
      <title>Aikau Widget Function Signatures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-widget-function-signatures/m-p/296108#M249238</link>
      <description>Many Aikau Widgets (such as DateTextBox, form controls) seem to use the following:define(["alfresco/core/Core",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&amp;nbsp;&amp;nbsp;&amp;nbsp; function(declare, _Widget, Core, _Templated, template) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return declare([_Widget, Core, _Templated], {…‍‍‍‍‍‍‍‍But others have different ones. For example, alfresc</description>
      <pubDate>Wed, 04 May 2016 21:41:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-widget-function-signatures/m-p/296108#M249238</guid>
      <dc:creator>stuartonmaui</dc:creator>
      <dc:date>2016-05-04T21:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aikau Widget Function Signatures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-widget-function-signatures/m-p/296109#M249239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure I understand the question. The functions given as examples are not constructors of widget instances - they are merely the module definition and factory functions that are used to define and initialise the module within the module system. Those are never directly called by any client code that you write based on Aikau. Their signature depends on the list of dependencies they need to pull in and the set of base modules / classes they need for defining their specific module / class via declare.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The signature for any widget constructor in Aikau is always the same - it is 'function(params)' where params is a simple object / hash of all the configuration properties you want to set on the widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But generally speaking you should also (almost) never call a widget constructor directly. Widget construction can be delegated to functions from Aikau mixins such as CoreWidgetProcessing#processWidgets (or #createWidget). This ensures widgets are instantiated uniformly and avoids any issues with you forgetting to include a common parameter / property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 07:18:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-widget-function-signatures/m-p/296109#M249239</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-05-09T07:18:29Z</dc:date>
    </item>
  </channel>
</rss>

