将图标设置为 kendo ui tabstrip 选项卡而不是文本?

Setting icons to kendo ui tabstrip tabs instead of text?

我只想显示一个图标,而不是在标签条标签上使用文本(标签的标题,而不是按下标签时弹出的内容)。

我有这个标签条:

$('#filterTabStrip').kendoTabStrip({
                        //animation: false,
                        collapsible: true,
                        dataTextField: 'text',
                        dataImageUrlField: 'imageUrl',
                        dataContentField: 'content',
                        dataSource: [
                            {
                                text: 'Users',
                                //imageUrl: $('#user_tab_image').html(),
                                content: $('#user_filter_template').html()
                            },
                            {
                                text: 'Location',
                                //imageUrl: '{!URLFOR($Resource.slds, "slds-master/assets/icons/utility-sprite/svg/symbols.svg#location")}'
                                content: $('#location_filter_template').html()
                            },
                            {
                                text: 'Description',
                                //imageUrl: '{!URLFOR($Resource.slds, "slds-master/assets/icons/action-sprite/svg/symbols.svg#description")}'
                                content: $('#description_filter_template').html()
                            },
                            {
                                text: 'Type',
                                //imageUrl: '{!URLFOR($Resource.slds, "slds-master/assets/icons/utility-sprite/svg/symbols.svg#picklist")}'
                                content: $('#type_filter_template').html()
                            },
                            {
                                text: 'Custom',
                                //imageUrl: '{!URLFOR($Resource.slds, "slds-master/assets/icons/utility-sprite/svg/symbols.svg#apps")}'
                                content: $('#user_filter_template').html()
                            }
                        ]
                    });

我曾尝试使用静态资源 URL 并在 html 模板中设置 svg 图像,然后将图像URL 设置为该模板,但那没有也不行。

我希望这是可能的。感谢您的帮助。

您或许可以尝试为 dataTextField 使用空文本,并提供需要显示的图标的 imageUrl。类似于 this 的内容可能会有所帮助!