Menu

ACTIONS

Carlos Celso de Almeida

Return HOME

Events consist of browser interrupts available for assigning operations.

Actions consist in the assigned operation for the events.

EVENTS:

 initialData  - data initial state w/label
 initialEmpty - data initial state wo/label, defaults: initialData
 mouseover    - mouseover event
 mousedown    - mousedown event, defaults: mouseover
 mouseup      - mouseup event, defaults: mouseover
 mouseleave   - mouseleave event, defaults: mouseout
 mouseout     - mouseout event, defaults: initialData
 click        - click event, defaults: mouseover
 clickmiddle  - mousedown event with middle button, defaults: mouseover
 clickright   - mousedown event with right button, defaults: mouseover

NOTE:

The 'initialData' and 'initialEmpty' are not events. They consist of the initial attributes of the cells.

The 'initialData' will be assigned to cells with label data.

The 'initialEmpty' will be assigned to cells with no label data, if omitted it will assume the attributes of 'initialData'.

ACTIONS:

The actions can be assigned in the 'dataset' section, 'cell event section' or 'cell section', where the 'dataset section' have preference to assign. Only one assign can be done, the an others will be ignored.

ACTIONS TYPE:

  1. Call functions: execute javascript functions, see below 'call functions arguments' to check the list of input data.
  2. Submit Forms: execute the command 'document.[[form]].submit()'
  3. Go to top of windows body: scroll to top;
  4. Go to bottom of windows body: scroll to bottom;
  5. Use secondary menus: open/close additionals menus;
  6. External URL: open external URL;
  7. Call REST URL: execute external URL by Fetch.

ACTIONS ATTRIBUTES:

 Call Functions:
     action: use functions names
     args: arguments


 Submit Forms:
     action: use the string '#submit',
     name: (in dataset or event) the is 'formname' in tag <form></form>, tag must be defined in html

Top of Windows:
     action: use the string '#top-of-body'

 Bottom of Windows:
     action: use the string '#bottom-of-body'

 Secondary Menus:
     action: use the string '#menu',
     menu: 'menuitem'
     menuAlign: must be 'cell', 'menu' or 'window'
     menuX: must be 0 until 1 (0%~100% relative of left-right menuALign)
     menuY: must be o until 1 (0%~100% relative of top-bottom menuALign)
     menuCloseAfterDone: true|false (force close main menu after openned secondary)
     menuIgnoreClickOut: true|false (ignore click out of cell to close)

 External URL:
     action: us the string 'http|https://[url]'
     method: 'fetch' (defaults: 'rest', the defaults is 'call rest format')
     newpage: true|false (defaults: true)
     args: arguments of https

 Call REST:
     action: us the string 'http|https://[url]'
     method: 'rest'
     newpage: true|false (defaults: true)
     args: arguments of https

Call Functions ARGUMENTS:

  - 1st: Event Argument (browser standard)
  - 2nd: jMenu Arguments
        event: jmenu_event
        menu: Menu Name
        id: data.id information
        item: DOMelement id
        target: DOM element in the Window
        data: Dataset information
        sync:
            hop: Sequence# (hop=0, first message based on event)
            item: syncItem
            menu: syncMenu
            run: syncRun
            disabled: true|false, true sync is not running

ENDED


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.