catalogicsoftware / ngx-dynamic-dashboard-framework

This is a JSON driven angular x based dashboard framework that is inspired by JIRA's dashboard implementation and https://github.com/raulgomis/angular-dashboard-framework
MIT License
187 stars 95 forks source link

Official Release #9

Open ebourgeois opened 6 years ago

ebourgeois commented 6 years ago

We really like this dashboard and would love to start using it in a prod environment; are there plans for an official release?

jayhamilton commented 6 years ago

Hi Erick, I currently don't have an official release date set. There are a few more things that I would like to do before then. For instance, make the gadgets more generic and closer to the vanilla ngx charts. Someone contributed code for that I have yet to implement. Also, I need to create an npm module. That said, feel free to take what is there and tailor it to your needs.

eppak commented 5 years ago

I i can ask you an advice, i want to do some experiment with this type of approach, the component creation is clear for me, what kind of method do you use for reorder? I explain: i add two child components to a host component, i want to swith position. Have you some tecnique or point me to the portion of code you use in this library?

jayhamilton commented 5 years ago

@eppak Sorting or repositioning components may be doable with the drag and drop library. Review the sortable capabilities here: https://github.com/akserg/ng2-dnd In addition, the actual drag and drop code is found within the grid component. Here is the html file: https://github.com/catalogicsoftware/ngx-dynamic-dashboard-framework/blob/master/src/app/grid/grid.html

Updating that to be sortable might be what is needed. I will actually, at some point, add this functionality.

9561690684 commented 5 years ago

Can we avoid/minimize use of session/local storage and can pass control to developer to pass the board at run time?

jayhamilton commented 5 years ago

@9561690684 feeding in the board's data structure programmatically as input is definitely doable. At some point I actually wrote the code to do that. All you need to do is create an @Input property on the GridComponent and associate it with the model class variable. The value of the Input property can be derived from app/services/configuration-sample-boards.model.ts You can pass it in via the BoardComponent's view.html.