Giter Site home page Giter Site logo

vaadin / vaadin-board Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 11.0 2.74 MB

Web Component for creating flexible responsive layouts and building nice looking dashboards.

Home Page: https://vaadin.com/components/vaadin-board

License: Other

HTML 96.83% JavaScript 3.17%
vaadin-pro web-component web-components vaadin vaadin-elements

vaadin-board's People

Contributors

alvarezguille avatar artur- avatar dependabot[bot] avatar diegocardoso avatar haprog avatar johannesh2 avatar limonte avatar manolo avatar oluwasayo avatar peppe avatar rogozinds avatar tomivirkki avatar ugur-vaadin avatar web-padawan avatar yuriy-fix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vaadin-board's Issues

Dom-repeat does not work properly inside vaadin-board-row

Dom-repeat does not work properly inside vaadin-board-row. When adding items to the board via dom-repeat, dom-repeat is counted as a child element of the road so you can not add for elements via dom-repeat only 3 or less.

Here is the complete example:

<link rel="import" href="../../polymer/polymer-element.html">
<link rel="import" href="../vaadin-board.html">
<dom-module id="board-element">
  <template>
    <style>
    </style>
    <vaadin-board>
        <vaadin-board-row>
          <dom-repeat items="{{items}}">
            <template>
              <div>{{item}}</div>
            </template>
          </dom-repeat>
        </vaadin-board-row>
    </vaadin-board>

  </template>

  <script>
    class BoardElement extends Polymer.Element {
      static get is() {
        return 'board-element';
      }

      static get properties() {
        return {
          items: {
            type: Array,
            value: ["Foo", "Bar", "Faz", "Foo"]
          }
        }
      }

    }
    customElements.define(BoardElement.is, BoardElement);
  </script>
</dom-module>

Getting started uses charts even if they are not installed

https://github.com/vaadin/board/blob/master/documentation/webcomponents-api/board-basic-use.asciidoc

Getting started documentation has these steps:

  1. run bower install vaadin-board
  2. <link rel="import" href="bower_components/vaadin-board/vaadin-board.html">
  3. use code
<vaadin-board>
  <vaadin-board-row>
      <vaadin-line-chart>
        <chart-title>Sales</chart-title>
        <!-- Configuration omitted -->
      </vaadin-line-chart>
      <vaadin-column-chart>
        <chart-title>Overall sales by region</chart-title>
      </vaadin-column-chart>
      <vaadin-column-chart>
        <chart-title>Services sales by region</chart-title>
      </vaadin-column-chart>
  </vaadin-board-row>
</vaadin-board>

Problem is that I have never installed charts so they did not render. The example was also so simple that I was not sure if board is working or is just text flowing as it should.

How to target styles for a specific vaadin-board?

I tried to specify large, medium, small classes for only 1 vaadin-board (code below). Is there a way to do this?

    <style>
      #first.large {
          font-size:20px;
      }
      #first.medium {
          font-size:16px;
      }
      #first.small {
          font-size:10px;
      }
    </style>
    <vaadin-board id="first">
      <vaadin-board-row>
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
      </vaadin-board-row>
      <vaadin-board-row>
        <div class="item">1</div>
        <div class="item">2</div>
      </vaadin-board-row>
    </vaadin-board>

    <vaadin-board id="second">
      <vaadin-board-row>
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
      </vaadin-board-row>
      <vaadin-board-row>
        <div class="item">1</div>
        <div class="item">2</div>
      </vaadin-board-row>
    </vaadin-board>

Convert to Polymer 3

There are no custom events (except the resize events which are considered internal) so this is only about conversion itself.

Dumb Question - paid component?

Quick question - If I'm only using this web component and not the java Vaadin Framework, is here still a license code for this?

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.