How to change the rx.component ? #3061
yellowbean
announced in
Q&A
Replies: 1 comment
-
The I get a different error actually, and i think the core problem is the code is adding the def patchActionToTbl(tbl:rx.Component) -> rx.Component:
header = tbl.children[0]
header_row = header.children[0]
header_row.children.append(rx.table.column_header_cell("Action"))
body = tbl.children[1]
for r in body.children:
r.children.append(rx.table.cell(" action "))
return tbl |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've build a function to generate a rx.table.root with list of strings as input.
Now , I would like to make an other function, which takes in a table component. ( rx.table.root) and return a new table component with extra column attached
patchActionToTbl
,But an error show up :
code to reproduce
Beta Was this translation helpful? Give feedback.
All reactions