vi.framework.components.actionbar

Module Contents

Classes

ActionBar

Provides the container for actions (add,edit,..) suitable for one module (eg. for lists).

class vi.framework.components.actionbar.ActionBar(module=None, appType=None, currentAction=None, *args, **kwargs)

Bases: flare.html5.Div

Provides the container for actions (add,edit,..) suitable for one module (eg. for lists).

setActions(actions, widget=None, view=None)

Sets the list of valid actions for this module. This function tries to resolve a suitable action-widget for each given action-name and adds them on success. All previous actions are removed. :param actions: List of names of actions which should be available. :type actions: list of str

getActions()

Returns the list of action-names currently active for this module. May also contain action-names which couldn’t be resolved and therefore not displayed. :returns: List of str

resetLoadingState()

Resets the loading-state of each child. Each child has the ability to provide visual feedback once it has been clicked and started working. This function is called from our parent once that action has finished, so we can tell our children to return to a sane state.