TOAST UI Calendar
npm install @toast-ui/calendar> A JavaScript calendar that is full featured. Now your service just got the customizable calendar.




- 📙 Documents
- Collect statistics on the use of open source
- 💾 Install
- Using npm
- Via Contents Delivery Network (CDN)
- Download Source Files
- 📅 Usage
- Load
- Implement
- 🔧 Pull Request Steps
- Setup
- Develop
- Pull Request
- 💬 Contributing
- 📜 License
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, set the usageStatistics option to false:
``js`
const calendar = new Calendar('#calendar', {
usageStatistics: false
});
`sh`
npm install --save @toast-ui/calendar
TOAST UI products are available over the CDN powered by NHN Cloud.
`html
`
If you want to use a specific version, use the tag name instead of latest in the url's path.
The CDN directory has the following structure.
``
- uicdn.toast.com/
├─ calendar/
│ ├─ latest
│ │ ├─ toastui-calendar.css
│ │ ├─ toastui-calendar.js
│ │ ├─ toastui-calendar.min.css
│ │ ├─ toastui-calendar.min.js
│ │ ├─ toastui-calendar.ie11.js
│ │ ├─ toastui-calendar.ie11.min.js
│ │ │ toastui-calendar.mjs
│ ├─ v2.0.0/
- Download all sources for each version
TOAST UI Calendar can be instantiated through the constructor function. There are three ways to access the constructor function depending on the environment.
`js`
/ ES6 module in Node.js environment /
import Calendar from '@toast-ui/calendar';
import '@toast-ui/calendar/dist/toastui-calendar.min.css';
`js`
/ CommonJS in Node.js environment /
const Calendar = require('@toast-ui/calendar');
require('@toast-ui/calendar/dist/toastui-calendar.min.css');
`js`
/ in the browser environment namespace /
const Calendar = tui.Calendar;
`html`
`javascript
const calendar = new Calendar('#calendar', {
defaultView: 'week',
template: {
time(event) {
const { start, end, title } = event;
return ${formatTime(start)}~${formatTime(end)} ${title};${event.title}
},
allday(event) {
return ;`
},
},
calendars: [
{
id: 'cal1',
name: 'Personal',
backgroundColor: '#03bd9e',
},
{
id: 'cal2',
name: 'Work',
backgroundColor: '#00a9ff',
},
],
});
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.
Fork main branch into your personal repository.
Clone it to local computer. Install node modules.
Before starting development, you should check to have any errors.
` sh``
git clone https://github.com/{your-personal-repo}/[[repo name]].git
cd [[repo name]]
npm install
Let's start development!
Before PR, check to test lastly and then check any errors.
If it has no error, commit and then push it!
For more information on PR's step, please see links of Contributing section.
- Code of Conduct
- Contributing Guidelines
- Commit Message Convention