Comments (6)
thanks for fast response. It worked!
from material-dashboard.
@alperensahin the charts don't appear in the other tabs because the tabs come with "display:none" property, that means the javascript cannot see anything that is inside them, so the javascript doesn't see the charts. What you have to do is to initialize the charts again when the tab is switched. You can see when the tab is switched by using the tabs events from Bootstrap: http://getbootstrap.com/javascript/#tabs-events
So you basically add the init of the chart inside the shown.bs.tab event, because that event is triggered as soon as the tab was completely shown.
Hope this helps!
from material-dashboard.
Hi @alexandru-paduraru I'm trying to add a chart under a tab-pane using two different components like this:
<div class="tab-pane" id="link3"> <my-component></my-component> </div>
I don't understand where I need to put the Javascript code you linked two years ago. Can you help me?
from material-dashboard.
Hello @AntonioBusillo,
Thank you for using our products, the code from above (http://getbootstrap.com/javascript/#tabs-events) is for Bootstrap 3, if you are using the Bootstrap 4 version please let us know.
Best,
Stefan
from material-dashboard.
Yes, I'm using Bootstrap 4, with the angular version of the Material Dashboard (version 2.2.0)
from material-dashboard.
So, I will ask you to open this issue on the right repo (for the angular) https://github.com/creativetimofficial/material-dashboard-angular2 and my colleague will help you to solve your issue.
All the best,
Stefan
from material-dashboard.
Related Issues (20)
- [Bug] Search does not work even if the search function is activated.
- [Bug] Template does not work HOT 1
- [Feature Request] Documentation Datatable AJAX/fetch Request HOT 1
- php version for material blog pro for laravel HOT 1
- php version for material blog pro for laravel HOT 1
- i use Material Dashboard 2 - v3.0.2 but do'nt support RTL ?? HOT 1
- outdated version on npmjs HOT 1
- [Bug] btn-secondary non-uniform behaviour HOT 3
- [Bug] Navbar UI broken in mobile devices. HOT 2
- [Bug] Notification dropdown box-shadow HOT 3
- Idea shows there are errors in material-dashboard.css file HOT 1
- Hi Team, I have a question. I am a beginner Developer and I want use your theme in my code. I want to sell my code on codecanyon after install your theme, If my code approve on codecanyon, I will buy you premimum themes. So can I use it or not? HOT 1
- [Feature Request] A question HOT 1
- [Bug] Wrong instalation manual and not working template
- When will there be a BS 5.3.2 version and free from Gulp HOT 1
- [Bug] simple-datatables labels customization
- ERROR 404 Not Found The requested URL was not found on this server IN REAL VPS HOT 1
- Sidebar hiding without a toggle button on screens < lg HOT 2
- [Feature Request] I want to clone for use it for the Ride app.
- Add Repobeats (metrics) to README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-dashboard.