gpt4 book ai didi

javascript - 仅带有图像的 Extjs 文件字段按钮

转载 作者:行者123 更新时间:2023-11-30 18:03:39 26 4
gpt4 key购买 nike

请帮帮我。我可以用图像修改浏览按钮吗?因此,如果用户点击图像,就会显示浏览对话框。我是 Extjs 的新手。我尝试使用 iconCls,但它不起作用:/

please check this image

谢谢

最佳答案

使用 buttonConfig配置选项。您可以在那里指定 iconCls。这就是他们在 this example 中的做法

{
xtype: 'filefield',
name: 'photo',
fieldLabel: 'Photo',
labelWidth: 50,
msgTarget: 'side',
allowBlank: false,
anchor: '100%',
buttonConfig: {
text: 'Hello',
iconCls: 'test-class'
}
}

关于javascript - 仅带有图像的 Extjs 文件字段按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16310888/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com