2 Replies Latest reply on Jun 24, 2008 9:06 PM by richajon

    suggestionbox javascript api

      Concerning: http://jira.jboss.com/jira/browse/RF-413


      A log entry says: docsupdated


      And another says:

      callSuggestion and getSelectedItems have been implemented.

      Usage:
      $('id').component.callSuggestion(ignoreMinChars);
      $('id').component.getSelectedItems(); - returns array of objects;

      Also you can get array of properties from the object array using folowing prototype method:
      $('id').component.getSelectedItems().pluck(propertyName);


      I am not quite sure I understand these examples. To which id does it refers? As the first log entry I quoted says: docs updated? Can anyone point me to this documentation? I would like to know more about the usage of the javascript API of the suggestion box.

      Thanks