Skip to content

Instantly share code, notes, and snippets.

View branflake2267's full-sized avatar
🏠
Working from home

Brandon Donnelson branflake2267

🏠
Working from home
View GitHub Profile
@branflake2267
branflake2267 / SandboxViewComponent.html
Last active November 15, 2019 02:24
Simple ExtWebComponents View
<div>Sandbox View</div>
<ext-button
text="Normal3"
shadow="true"
arrowAlign="bottom"
></ext-button>
@branflake2267
branflake2267 / canvas-test.html
Created September 30, 2019 21:20
Canvas scrolling poc
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Canvas Scrolling</title>
<style>
</style>
</head>
@branflake2267
branflake2267 / app.js
Created September 28, 2019 18:20
Ext scrolling override - 500k
Ext.Loader.setConfig({
enabled: true
});
Ext.Loader.setPath('Ext.ux', 'ext/ux');
Ext.require(['Ext.ux.ajax.JsonSimlet', 'Ext.ux.ajax.SimManager']);
@branflake2267
branflake2267 / WindowWithDateFieldIssue.java
Created August 5, 2019 18:57
GXT 4 datepicker zindex workaround
import java.util.Date;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.BorderStyle;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.cell.core.client.form.DateCell;
import com.sencha.gxt.core.client.dom.XElement;
import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.widget.core.client.Window;
@branflake2267
branflake2267 / index.html
Last active June 5, 2019 22:54
Simple Sencha ExtAngular App, one file
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My ExtAngular app example</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
@branflake2267
branflake2267 / index.html
Created April 18, 2019 01:37
ExtAngular simple main.ts example
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MyApp</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
@branflake2267
branflake2267 / index.html
Created April 10, 2019 01:43
Using babel to compile Angular.
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sandbox</title>
<script src="ext-angular-fiddle-bundle.js"></script>
</head>
@branflake2267
branflake2267 / ListViewSelectionModel.java
Created April 2, 2019 21:08
GXT 4.0.3 - ListViewSelectionModel selection fix, when you click on the scroll bar and use shift to persist the selection.
package com.sencha.gxt.widget.core.client;
import java.util.Collections;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.MouseDownEvent;
@branflake2267
branflake2267 / ComboColorChooserExample.java
Created March 20, 2019 23:28
GXT 4 custom combobox with color choices in a gallery format.
import java.util.Arrays;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style.Display;
@branflake2267
branflake2267 / AppResources.java
Created February 27, 2019 20:11
GXT 4 custom split button using material icon.
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);