Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grid refactoring #893

Merged
merged 3 commits into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/showcase/examples/example_html_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def example_html_grid(path=None):
**grid_param
)

grid.formatters["thing.color"] = lambda color: I(
_class="fa fa-circle", _style="color:" + color
grid.columns[3].represent = lambda row: I(
_class="fa fa-circle", _style="color:" + row.color
)

return dict(grid=grid)
2 changes: 1 addition & 1 deletion docs/chapter-16.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ As en example of application of the above,
Consider the case of wanting to send emails asynchronously from a background task.
In this example we send them using SendGrid from Twilio (https://www.twilio.com/docs/sendgrid/for-developers/sending-email/quickstart-python)

Here is an example of scheduler task to send the email:
Here is a possible scheduler task to send the email:

.. code:: python

Expand Down
Loading