Skip to content

Instantly share code, notes, and snippets.

View alejandro-du's full-sized avatar
🦭
MariaDB

Alejandro Duarte alejandro-du

🦭
MariaDB
View GitHub Profile
package com.example;
import com.vaadin.icons.VaadinIcons;
import com.vaadin.ui.Button;
import com.vaadin.ui.Grid;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.renderers.ComponentRenderer;
import com.vaadin.ui.themes.ValoTheme;
/**
@alejandro-du
alejandro-du / gist:3b417f3c5c83bf15571c59f0158c1672
Created May 2, 2017 09:56
Vaadin 8.1 - Grid Drag and Drop example
package com.example;
import com.vaadin.shared.ui.grid.DropMode;
import com.vaadin.ui.Grid;
import com.vaadin.ui.GridDragSource;
import com.vaadin.ui.GridDropTarget;
import com.vaadin.ui.VerticalLayout;
import java.util.List;
@alejandro-du
alejandro-du / vaadinBootstrap.js
Last active January 26, 2017 11:07
Function to "deatach" apps when required
(function() {
var apps = {};
var themesLoaded = {};
var widgetsets = {};
var log;
if (typeof console === "undefined" || !window.location.search.match(/[&?]debug(&|$)/)) {
//If no console.log present, just use a no-op
log = function() {};