Comments (5)
Yeah, you need to do something like this
constructor(private _dir: Dir) {
this._dir.dir = 'rtl';
}
Since Dir
is an angular/material
service that is used in the sidenavs
from vantage-ui-template.
Thanks dear @emoralesb05 , It works 😄 .
from vantage-ui-template.
not sure if that feature was active on the quickstart repo.
Could you tell me where should I add dir="rtl"
to test this locally? 😄
from vantage-ui-template.
Thanks for your replay, first.
You can add dir="rtl"
in src/index.html
file. I founded a way to fix it, by overriding the inline styles:
ngAfterViewChecked () {
let sidenav = document.getElementsByClassName('mat-sidenav-content');
sidenav[1].style.marginLeft = "0px"
sidenav[1].style.marginRight = "300px"
}
but, you know this is not good solution, any better one ?
from vantage-ui-template.
there is a similar function implemented on the documentation page of covalent, maybe you could take a look in the source code and take some ideas from that
from vantage-ui-template.
Related Issues (20)
- tsconfig.json should be on root folder HOT 1
- 'ng serve' failure on Windows HOT 2
- Fails to load application - ng serve stops- webpack: Failed to compile HOT 3
- Update quickstart to latest Covalent
- Mock-api scripts fail for yarn installation but not npm installation HOT 2
- Validity redirect encountered 426 Upgrade Required error! HOT 2
- deploy to heroku
- how to call overview.component method from dashboard-product.component in covalent quickstart app HOT 2
- Custom created pages not rendered on Firefox and Safari? HOT 6
- Stepper methods calls doesn't work HOT 5
- Custom Theme Documentation? HOT 6
- BUG: Top left toolbar toggle button missing after upgrading to material beta 8 and covalent beta 6. HOT 2
- invalid mock-api schemas HOT 1
- You have to be inside an angular-cli project in order to use the serve command HOT 3
- Slim down the quickstart or make it clear what can be removed HOT 4
- SVG in Firefox are oversized HOT 2
- The quickstart is not compatible with the version ^1.0.0-beta.7 HOT 5
- I can't see fab and toolbar after upgrading. HOT 2
- Node 9 Compatibility HOT 2
- Breaking the App component html in to multiple components HOT 9
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 vantage-ui-template.