Git Product home page Git Product logo

kaadin's Introduction

Kaadin

Build Status Code coverage download

Kaadin is a library to create Vaadin Graphical User Interface using a Kotlin Domain-Specific Language .

1. Two-minutes tutorial

An example is worth a thousand words:

import ch.frankel.kaadin.* //(1)
import com.vaadin.server.*
import com.vaadin.ui.*

class FirstStepUI(): UI() {
    override fun init(request: VaadinRequest) {
        verticalLayout(margin = true, spacing = true) { //(2)
            label("Welcome to Vaadin") //(3)
        }
    }
}
  1. Import the namespace ch.frankel.kaadin.*

    1. There’s one Kaadin function for each Vaadin component e.g. button() maps Button()

  2. The topmost component will automatically be added as the UI content. There’s one such function per common Vaadin component.

  3. Nested blocks allow to add children components and configure them

2. Usage

  1. Build

    mvn install
  2. Use

    <dependency>
        <groupId>ch.frankel.kaadin</groupId>
        <artifactId>kaadin-core</artifactId>
        <version>0.1-SNAPSHOT</version>
    </dependency>

3. Going further

The full documentation is available on the Kaadin site.

4. License

Kaadin is distributed under the friendly Apache 2.0 License.

kaadin's People

Contributors

nfrankel avatar

Watchers

 avatar  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.