Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

JavaScript functions

The linoweb.js file

linoweb.js

The https://gitlab.com/lino-framework/lino/blob/master/lino/modlib/extjs/linoweb.js template is used to generate a huge monolythic javascript file which contains Lino-specific JavaScript functions.

General functions

Lino.id_renderer()
Lino.logout(id, name)

Action calls

Functions which have to do with AJAX calls:

digraph "Who's who in :xfile:`linoweb.js`" {

 row_action_handler -> call_ajax_action;
 list_action_handler -> call_ajax_action;
 run_row_action -> call_ajax_action;
 logout -> call_ajax_action;

 put -> action_handler;
 on_afteredit -> action_handler;

 "ActionFormPanel.on_ok" -> call_ajax_action;
 call_ajax_action -> action_handler;
 action_handler -> handle_action_result;

 "FormPanel.save"  -> handle_action_result;

 handle_action_result -> action_handler;
}

TODO:

Lino.row_action_handler(actionName, hm, pp)
Lino.list_action_handler(ls_url, actionName, hm, pp)
Lino.run_row_action(requesting_panel, url, meth, pk, actionName, preprocessor)
Lino.put = function(requesting_panel, pk, data)
Lino.call_ajax_action(panel, method, url, p, actionName, step, on_confirm, on_success)
Lino.action_handler(panel, on_success, on_confirm)
Lino.handle_action_result(panel, result, on_success, on_confirm)

Classes

class Lino.WindowWrapper()

See 2010-07-16

Lino.WindowWrapper.Lino.WindowWrapper.load_master_record(record)

Loads the specified record into this window.

Lino.WindowWrapper.Lino.WindowWrapper.show()

Display this window.

class Lino.FormPanel()
Lino.FormPanel.Lino.FormPanel.ls_data_url

The base URI of the report.

Lino.FormPanel.Lino.FormPanel.data_record

An object that should have at least these attributes: - title - values

See 2010-07-14

Lino.FormPanel.Lino.FormPanel.load_master_record()
Lino.FormPanel.Lino.FormPanel.save()
Lino.FormPanel.Lino.FormPanel.load_record_id(record_id, after)
class Lino.GridPanel()
Lino.GridPanel.Lino.GridPanel.load_slavegrid()
Lino.GridPanel.Lino.GridPanel.ls_data_url

The base URI of the report.

See 2010-07-14

Lino.GridPanel.on_afteredit(e)
class Lino.ActionFormPanel()

The window that opens when the user invokes an action that has parameters.

Lino.ActionFormPanel.on_ok()

Defined in site.js

Lino.notes.NoteTypes.grid(params)
Arguments:
  • params (object()) – Parameters to override default config values.

Returns:

null

See 2010-07-06

Names from external libraries

class Ext.ux.grid.GridFilters()