Piccolo Admin tooltips
The Piccolo Admin now has support for tooltips, which can be added for tables and columns.
Here's are some screenshots:
Often database tables get quite complex, and providing hints to the user about what a table is for, and what the columns represent, can be very helpful.
Adding them is very simple:
# tables.py
from piccolo.columns import Varchar
from piccolo.table import Table
class Movie(Table, help_text="Movies which were released in cinemas."):
name = Varchar(help_text="The name it was released under in the USA.")
And then we just run the admin as usual:
# app.py
from piccolo_admin.endpoints import create_admin
from tables import Movie
app = create_admin(tables=[Movie])
if __name__ == '__main__':
import uvicorn
uvicorn.run(app)
Posted on: 23 Mar 2021
Have any comments or feedback on this post? Chat with us on GitHub.