mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Expose current SQLite row to render_cell hook, closes #1300
This commit is contained in:
parent
9f1eb0d4ea
commit
6373bb3414
6 changed files with 14 additions and 7 deletions
|
|
@ -373,12 +373,15 @@ Examples: `datasette-publish-fly <https://datasette.io/plugins/datasette-publish
|
|||
|
||||
.. _plugin_hook_render_cell:
|
||||
|
||||
render_cell(value, column, table, database, datasette)
|
||||
------------------------------------------------------
|
||||
render_cell(row, value, column, table, database, datasette)
|
||||
-----------------------------------------------------------
|
||||
|
||||
Lets you customize the display of values within table cells in the HTML table view.
|
||||
|
||||
``value`` - string, integer or None
|
||||
``row`` - ``sqlite.Row``
|
||||
The SQLite row object that the value being rendered is part of
|
||||
|
||||
``value`` - string, integer, float, bytes or None
|
||||
The value that was loaded from the database
|
||||
|
||||
``column`` - string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue