Created
February 27, 2019 20:11
-
-
Save branflake2267/56d4778e4bfcf78d845d7017dfb73ea9 to your computer and use it in GitHub Desktop.
GXT 4 custom split button using material icon.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sencha.gxt.test.client.button_custommenu; | |
import com.google.gwt.core.shared.GWT; | |
import com.google.gwt.resources.client.ClientBundle; | |
import com.google.gwt.resources.client.CssResource; | |
public interface AppResources extends ClientBundle { | |
public static AppResources INSTANCE = GWT.create(AppResources.class); | |
public interface Styles extends CssResource { | |
String toolButton(); | |
String toolButtonOver(); | |
} | |
@Source({ "styles.gss" }) | |
Styles styles(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.toolButton { | |
margin-left: 0px !important; | |
border-left: 1px solid gray; | |
} | |
.toolButtonOver { | |
margin-left: 0px !important; | |
opacity: .9; | |
} |
Author
branflake2267
commented
Feb 27, 2019
Don't forget to add this:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment