Comments (5)
hi. did you checked the readme?
from ng-daterangepicker.
I did but I didn't found where to change the names of the months
from ng-daterangepicker.
oh yes, I switched with day names. you can make a PR for months if you have time and I will accept it.
from ng-daterangepicker.
Is there anyway that we could change the name dynamically?
In understand that we can change them statically under:
ngOnInit() {
this.options = {
...
dayNames: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
...
};
However, I am using ngx-translate, which allows me to change the text dynamically in the HTML.
For example,
<a [routerLink]="'/therooms' | localize" [routerLinkActive]="['router-link-active']">
{{'ROOMS' | translate}}
</a>
In other words, can I break down the daterangepicker to put more of the package into the HTML to allow me to make this type of dynamic change, or would there be a way to do this within the Typescript?
Thanks!
from ng-daterangepicker.
Hi. I'm also looking for a way to change the month names, solutions by dateFns doesnt seems to work on Angular 5, I'm out of ideas.
from ng-daterangepicker.
Related Issues (20)
- Changelog and versioning
- How can I display only single date ?.. HOT 1
- CSS not loaded HOT 1
- Cannot register onChange callback
- set min and max dates HOT 1
- disable input field
- Bulma seems not working HOT 1
- How to override the syle?
- cant change the styles of calendar-container
- Setting default Date Range HOT 2
- Month display after selecting by shortcut
- How to open / close manually? HOT 2
- 2017 Oct weekdays displayed wrongly HOT 17
- Error File " " is not under rootDir''. rootDir is expected to contain all source files.
- Won't compile without -aot
- Datepicker is not updating the ngmodel value with default selection. HOT 1
- Demo link is not working HOT 2
- Add new range HOT 1
- year selection
- Custom Date Range
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 ng-daterangepicker.