Added customer composite key
This commit is contained in:
18
app/javascript/controllers/calendar_controller.js
Normal file
18
app/javascript/controllers/calendar_controller.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
export default class extends Controller {
|
||||
connect() {
|
||||
this.initializeCalendar();
|
||||
}
|
||||
|
||||
initializeCalendar() {
|
||||
// If using a library like FullCalendar
|
||||
const calendar = new FullCalendar.Calendar(this.element, {
|
||||
height: '80vh', // Full viewport height
|
||||
width: '100%',
|
||||
// Other calendar options...
|
||||
});
|
||||
|
||||
calendar.render();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user