angular-ui/ui-calendar — 1.5k★ trên GitHub (JavaScript). A complete AngularJS directive for the Arshaw FullCalendar.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
The ui-calendar directive plays nicely with ng-model.
An Event Sources object needs to be created to pass into ng-model. This object's values will be watched for changes. If a change occurs, then that specific calendar will call the appropriate fullCalendar method.
The ui-calendar directive expects the eventSources object to be any type allowed in the documentation for the fullcalendar. docs
Note that all calendar options which are functions that are passed into the calendar are wrapped in an apply automatically.
Accessing the calendar object
It is possible to access a specific calendar object by declaring a name for it on the uiCalendar directive. In this next line we are naming the calendar 'myCalendar'. This will be attached to the uiCalendarConfig constant object, that can be accessed via DI.
Now the calendar object is available in uiCalendarConfig.calendars:
uiCalendarConfig.calendars.myCalendar
This allows you to declare any number of calendar objects with distinct names.
Custom event rendering
You can use fullcalendar's eventRender option to customize how events are rendered in the calendar.
However, only certain event attributes are watched for changes (they are id, title, url, start, end, allDay, and className).
If you need to automatically re-render other event data, you can use calendar-watch-event.
calendar-watch-event expression must return a function that is passed event as argument and returns a string or a number, for example:
$scope.extraEventSignature = function(event) {
returns "" + event.price;
}
<ui-calendar calendar-watch-event="extraEventSignature(event)" ... >
// will now watch for price
Adding new events issue
When adding new events to the calendar they can disappear when switching months. To solve this add stick: true to the event object being added to the scope.
Watching the displayed date range of the calendar
There is no mechanism to $watch the displayed date range on the calendar due to the JQuery nature of fullCalendar. If you want
to track the dates displayed on the calendar so you can fetch events outside the scope of fullCalendar (Say from a caching store
in a service, instead of letting fullCalendar pull them via AJAX), you can add the viewRender callback to the calendar config.
angular-ui/ui-calendar có 1.5k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/angular-ui/ui-calendar. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
angular-ui/ui-calendar có phải mã nguồn mở không?
Có — angular-ui/ui-calendar phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/angular-ui/ui-calendar.
angular-ui/ui-calendar có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho angular-ui/ui-calendar. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
angular-ui/ui-calendar có trang demo không?
Dự án có trang chủ ở http://angular-ui.github.io/ui-calendar/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
angular-ui/ui-calendar còn đang phát triển không?
Commit gần nhất trên angular-ui/ui-calendar là 7.6 năm trước (theo timestamp GitHub). Repo có 711 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc thêm về angular-ui/ui-calendar ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/angular-ui/ui-calendar là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc ui-calendar có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về ui-calendar.