我一直在使用python中的dash库。在其中我使用dash table,但在filter data cell中我得到了'filter data...'作为占位符,我想更改它。在python的dash库中,我使用了dash table,但在filter data单元格中,我得到了“filter data.”作为占位符,我想更改它。
ymdaylpp1#
有点晚,但你可以使用placeholder_text字典与关键字placeholder_text。所以,类似于:
placeholder_text
dash_table.DataTable( sort_action='native', filter_action='native', filter_options={ 'placeholder_text': 'Type filter...', 'case': 'insensitive' },
字符串上面的代码将给予一个默认的不区分大小写的过滤器,其占位符为“类型过滤器."。
1条答案
按热度按时间ymdaylpp1#
有点晚,但你可以使用
placeholder_text
字典与关键字placeholder_text
。所以,类似于:字符串
上面的代码将给予一个默认的不区分大小写的过滤器,其占位符为“类型过滤器."。