Hi,

I can not find[1] any documentation on how to correctly specify links to
properties or to a constructor.


I used to write it like this in qooxdoo 2.1.x (example code):
--------------------------------------------------------------------------------
qx.Class.define("ns.ui.Example",
{
  // ...

  properties :
  {
    /** The start date/time to narrow the result. */
    periodStart : {
      check : "Date"
    },

    /** The end date/time to narrow the result. */
    periodEnd : {
      check : "Date"
    }
  },

  members :
  {
    /**
     * Return a <code>DateRange</code> made from the properties
     * {@link #periodStart} and {@link periodEnd}.
     *
     * @return {ns.util.DateRange} A new date-range
     */
    getRange : function ()
    {
      return new ns.util.DateRange(this.getPeriodStart(),
                                   this.getPeriodEnd());
    },


    /**
     * Does some 'foo'.
     *
     * @param config {Map?null} A map containing the options (See
     *   {@link ns.ui.Base#construct} for details).
     */
    foo : function (config)
    {
      // ...
    }
  }
});
--------------------------------------------------------------------------------

But with the 3.0.1 framework I get the following warnings [2]:

  - Warning: ns.ui.Example: Unknown link target: 'ns.ui.Base#construct'
  - Warning: ns.ui.Example: Unknown link target: 'periodEnd'
  - Warning: ns.ui.Example: Unknown link target: 'periodEnd'


So my questions are:
a) how to 'link' to a (own) property?
   (method 'getRange' in example)
b) how to 'link' to a constructor?
   (method 'foo' in example)


By the way, in the documentation of 'link'[3] there is a slight error in the
example I think. The closing brace should be directly behind NUMBER, right?
  {@link qx.constant.Type#NUMBER} here.
  instead of
  {@link qx.constant.Type#NUMBER here}.


Any help would be appreciated,
  Peter



[1] http://manual.qooxdoo.org/3.0/pages/development/api_jsdoc_ref.html
[2] My config.json includes the following api job parameters:
    "api" :
    {
      "api" : {
        "verify" : [ "links", "types" ]
      },
      "config-warnings" : {
        "environment" : [ "non-literal-keys" ]
      }
    }
[3] http://manual.qooxdoo.org/3.0.x/pages/development/api_jsdoc_ref.html#link

-- 

*************************************************************
Besuchen Sie uns:
01.-03.10.2013 Post-Expo in Wien
Wir laden Sie herzlich ein und freuen uns auf Ihre Anmeldung.
*************************************************************

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to