Falko Schindler
Falko Schindler
I see two scenarios here: **A) The user dumps a list into a table cell.** This can be seen as a user error. It would be costly and complicated to...
I argued for splitting scenarios A and B mainly for two reasons: 1. While calling `ui.table(rows=rows)` takes `rows` directly from user code, calling `.from_pandas(df)` _implicitly_ converts the dataframe into row...
I just created PR #4775 for `ui.table.from_pandas`. What do you think? To me it feels cleaner than adding implementing slots just to workaround this issue.
As reported in #3337, there seems to be a similar problem with `ui.codemirror`: ```py code = ui.codemirror(value='foo') ui.label().bind_text_from(code, 'value') ui.button('clear', on_click=lambda: code.set_value('')) editor = ui.editor(value='foo') ui.label().bind_text_from(editor, 'value') ui.button('clear', on_click=lambda: editor.set_value(''))...
@frankvp11 I'm still investigating. Here are my current thoughts: - Let's focus on `ui.editor`, because `ui.codemirror` does some more Vue magic on the client. - Clearing the editor is just...
Another insight: Calling `set_value` with alternating values works. ```py code = ui.codemirror(value='foo') ui.label().bind_text_from(code, 'value') ui.button('set x', on_click=lambda: ui.timer(0.5, lambda: code.set_value('x'), once=True)) ui.button('set y', on_click=lambda: ui.timer(0.5, lambda: code.set_value('y'), once=True)) ``` I...
I found a solution for `ui.editor`, see PR #3346. Since `ui.codemirror` needs to be addressed separately, I'll re-open #3337 again.
I wonder if we should wait for the next major release, because we change the card style in certain cases and might break custom CSS rules. In order not to...
I'll close this PR, because we don't think that this is a good solution. Making the DOM more complex just to fix a layout inconsistency between NiceGUI and Quasar... I...
Thanks, @Smug246! @alimate2023 Your packages from https://github.com/zauberzeug/nicegui/discussions/2737#discussioncomment-8861563 seem quite old compared to what @Smug246 posted. Maybe you can try updating them and check if the problem persists?