Giter Site home page Giter Site logo

dc-dashboard's Introduction

Hi there ๐Ÿ‘‹

dc-dashboard's People

Contributors

diegocardoso avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dc-dashboard's Issues

Create named slots for each child

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>

Add dashboard-cell to be used as child of dashboard

dc-dashboard-cell is a blank component with:

  • row: which row the cell will be placed
  • column: which column the cell will be placed
  • rowSpan: how many rows the cell will take
  • colSpan: how many cols the cell will take

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

Make dashboard responsive

Initial support for responsiveness on dashboard:

  • The initial configuration of number of columns will only work for the desktop view
  • For narrow viewports, dashboard will rely on the auto-fill option for columns, which will dynamically change the number of columns
  • User can define a min width for each cell that will be used for the auto generated columns with auto-fill
  • For the cells:
    • The col/row attributes won't be used for narrow viewports
    • colspan will be changed dynamically to respect the amount of columns left
    • rowspan can still be used as is*

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.