Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT Uibinder:将堆叠图标添加到按钮_Gwt_Font Awesome_Gwt Bootstrap - Fatal编程技术网

GWT Uibinder:将堆叠图标添加到按钮

GWT Uibinder:将堆叠图标添加到按钮,gwt,font-awesome,gwt-bootstrap,Gwt,Font Awesome,Gwt Bootstrap,按钮标记的图标属性将字体文件夹图标添加到按钮。是否可以将堆叠图标添加到按钮?对于新文件夹,我需要堆叠文件夹和PLUS图标并将其添加到按钮 <b:Button addStyleNames="pull-right {style.new-folder}" type="SUCCESS" ui:field="createDataRoom" icon="FOLDER"></b:Button> 您确定这可以编译吗 除非您的按钮是项目中的

按钮标记的图标属性将字体文件夹图标添加到按钮。是否可以将堆叠图标添加到按钮?对于新文件夹,我需要堆叠文件夹和PLUS图标并将其添加到按钮

<b:Button addStyleNames="pull-right {style.new-folder}"
                        type="SUCCESS" ui:field="createDataRoom" icon="FOLDER"></b:Button>

您确定这可以编译吗


除非您的按钮是项目中的自定义类,否则GWT按钮的大多数字段(包括图标)都不存在。它不是AddStyleName,而是简单的“styleName”

你确定不是你的同事制作了自定义按钮类吗

回到您的问题,正如您在中所看到的,您可以通过向HTML标记添加几个类来堆叠图标

因此,在您的例子中,您需要将它们堆叠在“styleName”(用于添加一个或多个CSS类的字段)中

使用普通的GWT按钮,代码将如下所示

<ui:UiBinder xmlns:g='urn:import:com.google.gwt.user.client.ui'>

<g:Button
        ui:field="createDataRoomButton"
        styleName="fa-stack fa-lg">


请注意fa stack和fa lg之间的空间。这是两个不同的类。

“GWT按钮的大多数字段都不存在”。这是GWTbootstrap3按钮。您是否更新了gwtbootstrap3?