creativetimofficial / now-ui-dashboard-angular Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I'm trying to change collapse the dashboard side nav in the default window. But it's not working properly.
How can I make sidebar expandable and collapsible as in mobile view with normal view?
Hi,
I am trying to use a nested accordion in the sidebar component .
I referred to this link and simply copy pasted the codes of these links -
https://www.bootply.com/fhdb11Byfq#
https://codepen.io/marklsanders/pen/OPZXXv
But none of it is stable. It just toggles immediately i click on the button.
Website title says, bs4 and angular 9 but this is angular 7. After I tried this ng7 project, and when decide to use and I purchase, I have to deal everything all over again. At least It would be nice to have angular 9 on demo project and see what I can do ? And not re-deal with theme on my project when I tried to put it in.
Thank you.
Hey, I am unable to use material design components and modules along with this theme, can you please suggest how do I integrate it?
Thanks.
Hi,
I want to change the default red-color of the sidebar. I did Inspect and got this css -
.sidebar[data-color="red"]:after,
.off-canvas-sidebar[data-color="red"]:after {
background: #FF3636;
}
But after changing its background color, it still doesn't change. Please help.
In the Getting Started Instructions located : https://demos.creative-tim.com/now-ui-dashboard-angular/#/documentation/tutorial
The following instructions are given:
How to start the project
Install NodeJs from NodeJs Official Page
Open Terminal
Go to your file project
Run in terminal npm install -g @angular/cli
Then run npm install
And npm start
Navigate to http://localhost:4200
Everything seems to work except for npm start because the package.json does not contain a script tag with a startup reference. Should there be one and if so, which one? For examlpe, when I try to run npm start from a terminal within Visual Studio Code, the following errors occur because of the missing start information in the package.json.
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/eurmgs/.npm/_logs/2019-10-14T08_12_22_255Z-debug.log
I created a component which is displayed inside the dashboard component. It will show the current temperature which a service gathers through a resolver from my backend API. The problem is that the inital setting of the value shows on the website/component. But if the variabe is updated the value on the frontend does not update or change.
This is the component for showing the temperature. The "tempSolar" and "tempWater" variables are used by interpolation in the html of the "TempsComponent".
import { Component, OnInit, Input, AfterViewInit, ChangeDetectorRef } from '@angular/core';
import { TempsService, Temps } from '../../temps.service';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-temps',
templateUrl: './temps.component.html',
styleUrls: ['./temps.component.scss']
})
export class TempsComponent implements OnInit, AfterViewInit {
@Input() solar: boolean;
solarNum: number = 0;
waterNum: number = 1;
tempSolar = 2;
tempWater: number = 10;
timestamp: string;
temps: Temps;
constructor(private route: ActivatedRoute, private tempService: TempsService) { }
showInitTemps() {
this.route.data.subscribe(({ temps }) => {
this.tempSolar = temps[this.solarNum].rawValue;
this.tempWater = temps[this.waterNum].rawValue;
});
}
updateTemps() {
this.tempService.channel.bind('data-update-event', function(data) {
console.log('number: ' + data[0]);
this.tempSolar = data[0];
console.log('solar: ' + this.tempSolar);
});
}
ngOnInit() {
this.showInitTemps();
this.updateTemps();
}
}
For more detailed info the github is: https://github.com/Tomson124/ResolVbus-Dashboard/tree/now-ui
test
I want to create a secondary menu, how to achieve ?
<div class="sidebar-wrapper">
<ul class="nav">
<li routerLinkActive="active" *ngFor="let menuItem of menuItems" class="{{menuItem.class}} nav-item">
<a [routerLink]="[menuItem.path]">
<i class="now-ui-icons {{menuItem.icon}}"></i>
<p>{{menuItem.title}}</p>
</a>
</li>
</ul>
</div>
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.