vaadin / vaadin-board Goto Github PK
View Code? Open in Web Editor NEWWeb Component for creating flexible responsive layouts and building nice looking dashboards.
Home Page: https://vaadin.com/components/vaadin-board
License: Other
Web Component for creating flexible responsive layouts and building nice looking dashboards.
Home Page: https://vaadin.com/components/vaadin-board
License: Other
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>
If you have a media query and it changes the style of a component, the resize event is not fired, so vaadin board doesn't change it's appearance. The problem comes is similar to when you set width or height for board from CSS you need to call a redraw method.
Currently, the TravisCI build will always fail for external PRs.
Take a look at our configuration: https://github.com/vaadin/vaadin-element-skeleton/blob/master/wct.conf.js#L16-L20
We are testing in SauceLabs only in case of push
event, for pull_request
we are testing only in Chrome and Firefox via Selenium.
https://github.com/vaadin/board/blob/master/documentation/webcomponents-api/board-basic-use.asciidoc
Getting started documentation has these steps:
<link rel="import" href="bower_components/vaadin-board/vaadin-board.html">
<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.
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>
There are no custom events (except the resize events which are considered internal) so this is only about conversion itself.
See “Generic steps” at vaadin/components-team-tasks#326
Quick question - If I'm only using this web component and not the java Vaadin Framework, is here still a license code for this?
When defining a row with 1/3 + 1/3 + 1/3 items and another row with 2/3 + 1/3 items the last items in the rows don’t match vertically.
Screenshot from @emarc’s demo:
Child of vaadin/vaadin-core#186
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.