Skip to content

Using Tabulator with Objects #67

Answered by s-cork
danbolinson-bt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @danbolinson-bt , I won't be able to look at the clone till next week - I'm away right now.

Until then you might want to look at the section in the readme about using models. You can supply a custom getter, which can be arbitrarily complex. Eg.

def custom_getter(obj, field):
    if field == 'foo':
        return str(obj[field])
    return obj[field]

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@s-cork
Comment options

@danbolinson-bt
Comment options

Answer selected by danbolinson-bt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants