Booking-js 介绍
Booking-js 是一个简单漂亮的嵌入式预定系统。它用 FullCalendar
来自定义主题。
示例代码:
{ // required email: '', // Your Timekit user's email (used for auth) apiToken: '', // Your Timekit user's apiToken (as generated through the wizard) calendar: '', // Your Timekit calendar ID that bookings should end up in // Optional targetEl: '#bookingjs', // Which element should we the library load into name: '', // display name to show in the header and timezone helper avatar: '', // Provide an image URL for a circular image avatar autoload: true, // Auto initialization if config object is found on window var includeStyles: true, // Inject fullCalendar and library styles in <head> showCredits: true, // display a "Powered by Timekit" attribution footer (thanks!) // Internationalization localization: { showTimezoneHelper: true, // Should the timezone difference helper (bottom) be shown? timeDateFormat: '12h-mdy-sun' // For EU-style formatting, use '24h-dmy-mon' (see below) } // Timekit JS SDK (see below) timekitConfig: { ... }, // Timekit FindTime endpoint (see below) timekitFindTime: { ... }, // Timekit CreateEvent endpoint (see below) timekitCreateEvent: { ... }, // FullCalendar options (see below) fullCalendar: { ... }, // Register callbacks on events callbacks: { findTimeStarted: function(args) {}, findTimeSuccessful: function(response) {}, findTimeFailed: function(response) {}, createEventStarted: function(args) {}, createEventSuccessful: function(response) {}, createEventFailed: function(response) {}, getUserTimezonestarted: function(args) {}, getUserTimezonesuccesful: function(response) {}, getUserTimezoneFailed: function(response) {}, fullCalendarInitialized: function() {}, renderCompleted: function() {}, showBookingPage: function(event) {}, closeBookingPage: function() {}, submitBookingForm: function(values) {} } }
Booking-js 官网
https://github.com/timekit-io/booking-js
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。