diegocardoso / dc-dashboard Goto Github PK
View Code? Open in Web Editor NEWWeb Component providing a dashboard and widgets based on CSS Grid.
License: Apache License 2.0
Web Component providing a dashboard and widgets based on CSS Grid.
License: Apache License 2.0
Make dc-dashboard
use dc-dashboard-cell
properties to set the position of the cell within the grid area.
dc-dashboard-cell
can return a structure with the valuesAfter a dc-dashboard-cell
is removed, the entry should be removed from the cells map.
To avoid messing up with the styles for each cell, internal elements of dashboard can be created on the fly for each cell being attached and those element, then would be styled with the CSS Grid properties.
The DOM structure should be like:
<dc-dashboard>
<!shadow-root>
<div style="/*css-grid-styles*/">
<slot name="cell-{n}">
<dc-dashboard-cell col="1" row="2"></dc-dashboard-cell>
</slot>
</div>
</dc-dashboard>
dc-dashboard-cell
is a blank component with:
row
: which row the cell will be placedcolumn
: which column the cell will be placedrowSpan
: how many rows the cell will takecolSpan
: how many cols the cell will takeThe idea is that, all the widgets will them extend this component and this will be a generic one, in case the user wants to have more control of what and how the content will be presented.
Initial support for responsiveness on dashboard:
auto-fill
option for columns, which will dynamically change the number of columnsauto-fill
col
/row
attributes won't be used for narrow viewportscolspan
will be changed dynamically to respect the amount of columns leftrowspan
can still be used as is*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.