[CLOSED] Listerners: Definition

  1. #1

    [CLOSED] Listerners: Definition

    Hello,

    I would like to understand the usage of the element <Listeners> in general.

    It has a child <ItemClick with which one can specify either the Fn (I think for function) attribut or the handler attribut. What is the diffrence between these 2 attributs and when should I use Fn and when should I use Handler.

    To specify the handler attribut we can use the following syntax

    Handler = "openDocument({url: menuItem.url})"

    What does this mean?

    What ist the goal of openDocument?
    What are the elements within the brackets?
    What does menuItem.url mean?

    Thanks
    Romuald.
  2. #2

    RE: [CLOSED] Listerners: Definition

    Hi,

    I would like to understand the usage of the element <Listeners> in general.
    Listeners are the client side events handlers (you can call own code for particular client side event of the control)


    It has a child <ItemClick>
    No, each component has own set of listeners therefore not each Listeners has ItemClick event


    What is the diffrence between these 2 attributs and when should I use Fn and when should I use Handler.
    Just Handler wrap by 'function(){/*your code from Handler*/}' therefore Handler property should contain javascript code only
    Fn is rendered as is therefore it must be javascript function like Fn="myExistingJavascriptFunc" or Fn="function(){alert('');}"


    To specify the handler attribut we can use the following syntax

    Handler = "openDocument({url: menuItem.url})"

    What does this mean?

    What ist the goal of openDocument?
    What are the elements within the brackets?
    What does menuItem.url mean?

    'openDocument' is some javascript function which defined in the page or something else. I don't know what that function do because it is your function. Where that code from?

Similar Threads

  1. [OPEN] [#115] Event definition seem missing
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 04, 2013, 12:23 PM
  2. Grid Panel Store definition
    By ChrisO in forum 2.x Help
    Replies: 0
    Last Post: Jul 13, 2012, 10:49 AM
  3. Go To Definition in VS2010
    By tallman in forum 1.x Help
    Replies: 0
    Last Post: Dec 28, 2011, 2:28 PM
  4. [CLOSED] Combo definition in Javascript
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 25, 2010, 2:58 PM
  5. [CLOSED] xtype definition
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 12, 2010, 11:39 PM

Posting Permissions