Skip to content
Discussion options

You must be logged in to vote

I found answer ; below code usable

ref: [(https://github.com//discussions/815)]

from nicegui import ui

columns = [
    {'name': 'key', 'label': 'key', 'field': 'key', 'sortable': True},
    {'name': 'value', 'label': 'value', 'field': 'value', 'sortable': True},
]
data = [
    {'key': 'total', 'value': 'success'},
    {'key': 'vagrant', 'value': 'warning'},
    {'key': 'gui automation', 'value': 'error'},
    {'key': 'parse and test', 'value': 'pending'},
]

with ui.table(columns, rows=data).classes('w-full bordered') as table:
    table.add_slot(f'body-cell-value', """
        <q-td :props="props">
            <q-btn @click="$parent.$emit('add', props)" icon="add" flat dense color='gree…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by muratbedir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant