Code: Select all
return Response(
headers={"HX-Trigger": "replaceGraph"},
media_type="application/json",
content=json.dumps(content),
)
< /code>
Ich möchte diesen clientseitigen Code: < /p>
document.body.addEventListener('replaceGraph', evt => {
// Get access to JSON content of the response.
});