Skip to content

How to show per sheet quitguard status in SheetsSheet? #2429

Answered by frosencrantz
frosencrantz asked this question in Q&A
Discussion options

You must be logged in to vote

I read the original issue again and read the source code.

If you only want to see the value, you can add a column: =row.options.quitguard

If you also want to update the option you need a snippet like:

SheetsSheet.columns.append(
    Column('quitguard',
        getter=lambda c,r: r.options.quitguard,
        setter=lambda c,r,v: setattr(r.options, 'quitguard', bool(v))
    )
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by frosencrantz
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