-
Notifications
You must be signed in to change notification settings - Fork 10
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
Rendering in a table issue: widget is rendered as a div with no structure #10
Comments
Reproducible example:
|
idea: the
but |
Excuse me, can't dive into this problem now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have an issue rendering a widget as a row inside a table. It is rendered inside a
div
and it doesn't respect the markup of my render function.This reminds me of a fix we implemented some months ago. We corrected
get-html-tag
for it to consult Spinneret and return a:tr
or a:td
if we are inside a table, and a:div
otherwise.I start like this:
add-book
updates the widget:I render the table inside my main widget:
and it displays the table correctly. When I click on the +1 button, a new widget is inserted above the widget that was clicked, inside the
tr
, it is rendered as a div and it doesn't contain any:td
, only the plain text title + author + price + quantity concatenated.tracing my render function: it is called.
logging
get-html-tag
and thusspinneret:get-html-path
: the path is NIL (??)I tried rendering my widget with an enclosing
:tr
: it doesn't change that the path is NIL and the rendered html as notd
but all the fields as text.Do you have any pointers or best practices to share?
ps: code
The text was updated successfully, but these errors were encountered: