chase0213 / ng-infinite-calendar Goto Github PK
View Code? Open in Web Editor NEWInfinite scrollable calendar for angular
Home Page: https://chase0213.github.io/nic-demo/
Infinite scrollable calendar for angular
Home Page: https://chase0213.github.io/nic-demo/
Parameterize the date formats.
01/2019
Jan-2019
Janeiro-2019
<span class="current-day-indicator">
{{ midDayOnCurrentWindow.strftime("%Y/%m") }}
</span>
Multi languages.
0.1.4
ptBR: {
dayOfWeek: {
default: ['Domingo', 'Segunda-Feira', 'Terça-Feira', 'Quarta-Feira', 'Quinta-Feira', 'Sexta-Feira', 'Sábado'],
short: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab']
},
months: {
default: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
short: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
}
}
bug
When the component is loaded for the first time, the label of month should be pointing to the middle date.
The label is pointing to the first date of "virtual" container.
Reload your browser, and see the label on the top-left corner of the component.
v0.1.6
bug
Event from 2017/8/29/00:00:00 to 2017/8/29/03:00:00 should be shown on 8/29 on the calendar.
If I set an event like the following, nothing shown.
{
title: '1st release day!',
body: 'the first release day of ng-infinite-calendar!',
beginAt: (new ExtDate(2017, 8, 29, 0, 0, 0)),
endAt: (new ExtDate(2017, 8, 29, 3, 0, 0)),
data: {},
},
Do you really need the event (mouseover)="onMouseoverDate($event, date)"
?
.cell {
&:hover {
background: rgba(#ffff9f, .4);
}
}
.cell {
// hovered day
&.hovered {
background: rgba(#ffff9f, .4);
}
}
Mouse pointer over the cell.
Simplification of code.
0.1.4
nothing
proposal
export const I18n = {
enUS: {
dayOfWeek: {
default: [
...
export const I18n = {
en: {
dayOfWeek: {
default: [
...
See https://github.com/chase0213/ng-infinite-calendar/blob/master/src/i18n.ts
en
is ambiguous because enUS
, enGB
and more exist.
0.1.4
nothing
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.