css 如何在dash table python中更改'filter data...'占位符?

rn0zuynd  于 5个月前  发布在  Python
关注(0)|答案(1)|浏览(70)

我一直在使用python中的dash库。在其中我使用dash table,但在filter data cell中我得到了'filter data...'作为占位符,我想更改它。
在python的dash库中,我使用了dash table,但在filter data单元格中,我得到了“filter data.”作为占位符,我想更改它。

ymdaylpp

ymdaylpp1#

有点晚,但你可以使用placeholder_text字典与关键字placeholder_text。所以,类似于:

dash_table.DataTable(
        sort_action='native',    
        filter_action='native',
        filter_options={
           'placeholder_text': 'Type filter...',
           'case': 'insensitive'
        },

字符串
上面的代码将给予一个默认的不区分大小写的过滤器,其占位符为“类型过滤器."。

相关问题