Loading ...
Sorry, an error occurred while loading the content.

52028Re: [ydn-javascript] Re: Expandable DataTable unsortable?

Expand Messages
  • Christian Tiberg
    Nov 1, 2009
      Thanks a lot Satyam, that's exactly what I needed!

      Best regards,
       Christian Tiberg

      2009/10/30 Satyam <satyam@...>

      So, first you declare the constructor of your new table, say:

      YAHOO.widget.ExpandableDataTable = function () {



      If you want to manipulate any of the arguments, name them and use call
      instead of apply providing your altered arguments. The example code
      does not do anything with the initial arguments. Then:

      YAHOO.lang.extend(YAHOO.widget.ExpandableDataTable, YAHOO.widget.DataTable, {

      initAttributes: function (oConfigs ) {

      oConfigs = oConfigs || {};

      YAHOO.widget.ExpandableDataTable.superclass.initAttributes.call(this, oConfigs);

      // add your own attributes here


      // add your own methods and properties here

      // for methods, remember to call the superclass method, unless you really don't want it


    • Show all 10 messages in this topic