Skip to content
Discussion options

You must be logged in to vote

Hi @juledwar!
As far as I know it is currently not possible to set custom cell renderers in NiceGUI.
But for displaying links there is a parameter html_columns that allows specifying columns that should be rendered as HTML:

ui.aggrid({
    'columnDefs': [
        {'headerName': 'Name', 'field': 'name'},
        {'headerName': 'URL', 'field': 'url'},
    ],
    'rowData': [
        {'name': 'Google', 'url': '<a href="https://google.com">https://google.com</a>'},
        {'name': 'Facebook', 'url': '<a href="https://facebook.com">https://facebook.com</a>'},
    ],
}, html_columns=[1])

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by juledwar
Comment options

You must be logged in to vote
1 reply
@falkoschindler
Comment options

Comment options

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