Add basic support for managing, and accepting API tokens
also various other changes in pursuit of that. so far tokens are only accepted by web API and not traditional web app
This commit is contained in:
parent
85947878c4
commit
c002d3d182
9 changed files with 318 additions and 26 deletions
|
@ -1613,6 +1613,23 @@ class GridAction(object):
|
|||
"""
|
||||
Represents an action available to a grid. This is used to construct the
|
||||
'actions' column when rendering the grid.
|
||||
|
||||
:param key: Key for the action (e.g. ``'edit'``), unique within
|
||||
the grid.
|
||||
|
||||
:param label: Label to be displayed for the action. If not set,
|
||||
will be a capitalized version of ``key``.
|
||||
|
||||
:param icon: Icon name for the action.
|
||||
|
||||
:param click_handler: Optional JS click handler for the action.
|
||||
This value will be rendered as-is within the final grid
|
||||
template, hence the JS string must be callable code. Note
|
||||
that ``props.row`` will be available in the calling context,
|
||||
so a couple of examples:
|
||||
|
||||
* ``deleteThisThing(props.row)``
|
||||
* ``$emit('do-something', props.row)``
|
||||
"""
|
||||
|
||||
def __init__(self, key, label=None, url='#', icon=None, target=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue