Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
Common actions¶
- class lino.core.actions.ShowEmptyTable¶
The default action for
lino.utils.report.EmptyTable.
- class lino.core.actions.SaveGridCell¶
Called when user edited a cell of a non-phantom record in a grid. Installed as update_action on every
Actor.
- class lino.core.actions.SubmitDetail¶
Save changes in the detail form.
This is rendered as the “Save” button of a detail window.
Installed as submit_detail on every actor.
- class lino.core.actions.CreateRow¶
Called when user edited a cell of a phantom record in a grid.
- class lino.core.actions.ShowSlaveTable¶
An action that opens a window showing another table (to be specified when instantiating the action).
- class lino.core.actions.WrappedAction¶
On instantiation it takes a
BoundActionas a positional argument and returns an action instance that behaves as a wrapper around the given BoundAction.action useful when binding to anotherActor.
- class lino.core.actions.MultipleRowAction¶
Base class for actions that update something on every selected row.
- class lino.core.actions.DeleteSelected¶
Delete the selected row(s).
This action is automatically installed on every editable actor.
- class lino.core.actions.ShowTable¶
Open a window with a tabular grid editor on this table. The grid editor is the main widget of that window (otherwise it would be a slave table).
Most items of the main menu are
ShowTableactions.
- class lino.core.actions.ShowDetail¶
Open the detail window on a table actor.
- class lino.core.actions.ShowInsert¶
Open an insert window on this actor. A new row will be inserted only when this window gets submitted, which is a separate action named
SubmitInsert.- create_instance()¶
Create a temporary instance that will not be saved, used only to build the button.
This actually calls
lino.core.requests.ActionRequest.create_instance(), which calls
- class lino.core.actions.SubmitInsert¶
Create a new database row using the data specified in the insert window. Called when the Create button of an insert window was clicked.
Most database models share the same action instance of this, which is stored in the
submit_insertclass attribute.