| Component | Description | | | Component | Description | | ||||
| --- | --- | | | --- | --- | | ||||
| [<**vaadin-grid**>](https://github.com/vaadin/vaadin-grid) · [Examples](../../vaadin-grid/demo) · [API](../apidoc/#vaadin-grid) | Data grid for showing large amounts of tabular data. | | |||||
| [<**vaadin-grid**>](https://github.com/vaadin/vaadin-grid) · [Examples](https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/vaadin-grid/demo/) · [API](https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/vaadin-components/apidoc/#vaadin-grid) | Data grid for showing large amounts of tabular data. | | |||||
### Quickstart | ### Quickstart |
xhr.onload = function (e) { | xhr.onload = function (e) { | ||||
if (xhr.readyState === 4) { | if (xhr.readyState === 4) { | ||||
if (xhr.status === 200) { | if (xhr.status === 200) { | ||||
readme.innerHTML = xhr.responseText; | |||||
readme.innerHTML = marked(xhr.responseText); | |||||
[].forEach.call(readme.querySelectorAll("pre"), function(pre) { | [].forEach.call(readme.querySelectorAll("pre"), function(pre) { | ||||
var code = document.createElement("code"); | var code = document.createElement("code"); | ||||
code.innerHTML = pre.innerHTML; | code.innerHTML = pre.innerHTML; | ||||
xhr.onerror = function (e) { | xhr.onerror = function (e) { | ||||
console.error(xhr.statusText); | console.error(xhr.statusText); | ||||
}; | }; | ||||
xhr.open("GET", "../README.html"); | |||||
xhr.open("GET", "../README.md"); | |||||
xhr.send(); | xhr.send(); | ||||
</script> | </script> |
}); | }); | ||||
}); | }); | ||||
gulp.task('cdn:stage-markdown', function() { | |||||
return gulp.src(['README.md', 'LICENSE.md']) | |||||
.pipe(markdown()) | |||||
.pipe(gulp.dest(stagingPath + "/vaadin-components")); | |||||
}); | |||||
gulp.task('cdn:stage-vaadin-components', ['cdn:stage-markdown'], function() { | |||||
return gulp.src(['vaadin-components.html', 'demo/*', 'apidoc/*'], {base:"."}) | |||||
gulp.task('cdn:stage-vaadin-components', function() { | |||||
return gulp.src(['README.md', 'LICENSE.html', 'vaadin-components.html', 'demo/*', 'apidoc/*'], {base:"."}) | |||||
.pipe(replace('https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/', '../../')) | |||||
.pipe(gulp.dest(stagingPath + "/vaadin-components")); | .pipe(gulp.dest(stagingPath + "/vaadin-components")); | ||||
}); | }); | ||||