Điểm qua nhn/toast-ui.vue-calendar: 194 sao trên GitHub, viết chủ yếu bằng Vue, thuộc nhóm Frontend. Toast UI Calendar for Vue
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.
TOAST UI Calendar for Vue has been managed separately from the TOAST UI Calendar repository. As a result of the distribution of these issues, we decided to deprecate each wrapper repository and manage repository as a mono-repo from the TOAST UI Calendar repository.
From now on, please submit issues or contributions related to TOAST UI Calendar for Vue to TOAST UI Calendar repository. Thank you 🙂
TOAST UI Calendar for Vue
This is Vue component wrapping TOAST UI Calendar.
🚩 Table of Contents
Collect statistics on the use of open source
Install
Using npm
Usage
Load
Implement
Props
Event
Method
Pull Request Steps
Contributing
License
Collect statistics on the use of open source
Vue Wrapper of TOAST UI Calendar applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Calendar is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. > “ui.toast.com") is to be collected and the sole purpose is nothing but to measure statistics on the usage. To disable GA, include tui-code-snippet.js and then immediately write the options as follows:
tui.usageStatistics = false;
💾 Install
Using npm
npm install --save @toast-ui/vue-calendar
📅 Usage
Load
You can use Toast UI Calendar for Vue as moudule format or namespace. Also you can use Single File Component (SFC of Vue). When using module format and SFC, you should load tui-calendar.css in the script.
Using Ecmascript module
import { Calendar } from '@toast-ui/vue-calendar';
import 'tui-calendar/dist/tui-calendar.css';
// If you use the default popups, use this.
import 'tui-date-picker/dist/tui-date-picker.css';
import 'tui-time-picker/dist/tui-time-picker.css';
Using Commonjs module
require('tui-calendar/dist/tui-calendar.css');
// If you use the default popups, use this.
require('tui-date-picker/dist/tui-date-picker.css');
require('tui-time-picker/dist/tui-time-picker.css');
var toastui = require('@toast-ui/vue-calendar');
var Calendar = toastui.Calendar;
Using Single File Component
import 'tui-calendar/dist/tui-calendar.css'
import Calendar from '@toast-ui/vue-calendar/src/Calendar.vue'
// If you use the default popups, use this.
import 'tui-date-picker/dist/tui-date-picker.css';
import 'tui-time-picker/dist/tui-time-picker.css';
Using namespace
var Calendar = toastui.Calendar;
Implement
Load calendar component and then add it to the components in your component or Vue instance.
import 'tui-calendar/dist/tui-calendar.css'
import { Calendar } from '@toast-ui/vue-calendar'
new Vue({
el: '#app',
components: {
'calendar': Calendar
}
});
Insert <calendar> in the template or html. <calendar> element should have own height.
<calendar style="height: 800px;"/>
Props
We provide props for Options of Toast UI Calendar. Each name of props is same options of Toast UI Calendar except view is for defaultView of option. Additionally you can set schedules using schedules of prop.
Name
Type
Default
Reactive
Description
schedules
Array
[]
O
Schedule list of calendar. If this prop is changed, Calendar is rendering.
calendars
Array
[]
O
Type list of calendars
view
String
'week'
O
View of calendar. There are three views, day, week and month.
taskView
Boolean, Array
true
O
Show the milestone and task in weekly, daily view. If set true, the milestone and task show. If you want to show only the milestone or task, set array like this: ['mileston'] or ['task'].
scheduleView
Boolean, Array
true
O
Show the all day and time grid in weekly, daily view. If set true, the all day and time show. If you want to show only the all day or time, set array like this: ['allday'] or ['time'].
theme
Object
{}
O
Customize theme. For more infomation about theme, see ThemeConfig of Toast UI Calendar.
week
Object
{}
O
Set more for the week and day view. For more infomation about week, see WeekOptions of Toast UI Calendar.
month
Object
{}
O
Set more for the month view. For more infomation about month, see MonthOptions of Toast UI Calendar.
timezones
Array
[]
O
Set multiple time zones. For more information about timezones, see Timezone of Toast UI Calendar.
disableDblClick
Boolean
false
O
Disable double click to create a schedule.
disableClick
Boolean
false
O
Whether to use mouse click events as defaults to create schedules.
isReadOnly
Boolean
false
O
Set read only mode. If true, a user can't create and modify any schedule.
template
Object
{}
X
Customize renderer. For more information about template, see Template of Toast UI Calendar.
useCreationPopup
Boolean
true
X
Whether use default creation popup or not.
useDetailPopup
Boolean
true
X
Whether use default detail popup or not.
usageStatistics
Boolean
true
X
Whether send hostnames to Google Analytics or not.
afterRenderSchedule : Occurs when every single schedule after rendering whole calendar.
beforeCreateSchedule : Occurs when select time period in daily, weekly, monthly.
beforeDeleteSchedule : Occurs when delete a schedule.
beforeUpdateSchedule : Occurs when drag a schedule to change time in daily, weekly, monthly.
clickDayname : Occurs when click a day name in weekly.
clickSchedule : Occurs when click a schedule.
clickTimezonesCollapseBtn : Occurs when click timezones collapse button. This event works when timezone prop has multi timezones and week prop has { showTimezoneCollapseButton: true }.
For more information such as the parameters of each event, see Event of Toast UI Calendar.
For use method, first you need to assign ref attribute of element like this:
<calendar ref="tuiCalendar"/>
After then you can use methods through this.$refs. We provide getRootElement and invoke methods.
getRootElement
You can get root element of calendar using this method.
this.$refs.tuiCalendar.getRootElement();
invoke
If you want to more manipulate the Calendar, you can use invoke method to call the method of Toast UI Calendar. First argument of invoke is name of the method and second argument is parameters of the method. To find out what kind of methods are available, see method of Toast UI Calendar.
this.$refs.tuiCalendar.invoke('today');
🔧 Pull Request Steps
TOAST UI products are open source, so you can create a pull request(PR) after you fix issues.
Run npm scripts and develop yourself with the following process.
Setup
Fork develop branch into your personal repository.
Clone it to local computer. Install node modules.
Before starting development, you should check to haveany errors.
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/nhn/toast-ui.vue-calendar là nguồn chính thức.
nhn/toast-ui.vue-calendar có bao nhiêu sao?
nhn/toast-ui.vue-calendar có 194 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/nhn/toast-ui.vue-calendar. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
nhn/toast-ui.vue-calendar có phải mã nguồn mở không?
Có — nhn/toast-ui.vue-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/nhn/toast-ui.vue-calendar.
nhn/toast-ui.vue-calendar còn đang phát triển không?
Commit gần nhất trên nhn/toast-ui.vue-calendar là 4.4 năm trước (theo timestamp GitHub). Repo có 53 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
nhn/toast-ui.vue-calendar là gì?
nhn/toast-ui.vue-calendar (nhn/toast-ui.vue-calendar) là dự án Vue trên GitHub. Theo mô tả gốc: Toast UI Calendar for Vue
nhn/toast-ui.vue-calendar so với các dự án Frontend khác thế nào?
nhn/toast-ui.vue-calendar được TopGit xếp vào nhóm Frontend, với 194 sao GitHub và viết bằng Vue. Xem trang chủ đề Frontend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về toast-ui.vue-calendar?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về toast-ui.vue-calendar.