Giter Club home page Giter Club logo

devday-demo-flow's Introduction

devday-demo-flow

Vaadin 14+ demo application (DevDays May / 2019)

This is demo application is collection of tips-and-tricks and workarounds. The source of ideas are questions in Vaadin's support channels (Forum, StackOverflow, GitHub issue tracker, commercial support, ...)

This application is not architectural demo about the best progrmming practices.

Setup

Clone project, import it to your IDE and run it with

Start server

mvn jetty:run

Production mode

mvn jetty:run -Pproduction

Open project in Browser

http://localhost:8080/myapp

List of demos

Login

  • Store intended route to Session and use later to route to right view after login

InitListener

  • Use global before enter event for login purposes
  • Setup custom error handler
  • Give notification if app is open on another tab

MainLayout

  • Configure context root to be "myapp"
  • AppLayout with key shortcuts
  • Get browser window width
  • Find host address
  • PageConfigurator example
  • Detect Browser window closing by listening "beforeUnload" with JavaScript and @ClientCallable callback
  • Setup CustomizedSystemMessages

AbsoluteLayoutView

  • Simplified absolute layout example

AccordionView

  • The complete demo

DialogView

  • Simple dialog example
  • Form and binding with Bean
  • DatePicker with weekend and holiday styles

FormLayoutView

  • Form and binding with Bean
  • Validators
  • Access main layout menu
  • BeforeLeaveObserver

GridView

  • Custom select column for single select
  • Grid context menu
  • ContextMenu to jump to years
  • ContextMenu to filter by month
  • Dynamic cell styling with TemplateRenderer
  • Cell styling with setClassNameGenerator
  • ComponentRenderer example
  • Popup to hide columns
  • CheckBox styling in Popup
  • Injecting custom property to text field to programmatically change color
  • Setup client side event listener with @ClientCallable callback
  • Using single RadioButton element from the RadioButtonGroup

UploadView

  • Drag and drop upload example

SplitLayoutView

  • Workaround with Chart resizing, forced re-flow by JavaScript call

VaadinBoardView

  • Chart re-flow workaround by div wrapping
  • Charts customization and styling to fit dark theme

ChartUtil

  • Chart drill-down
  • Chart plotlines
  • Chart tooltip formatter with conditional JavaScript logic
  • Chart zooming / panning

ThemeVariantsView

  • Some theme variant examples

GridProView

  • Workaround issue clicking save button when editor is open

TreeGridView

  • Selected parents subtree highlighting with class name generator

devday-demo-flow's People

Contributors

tatulund avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.