Skip to content

Commit

Permalink
eventDidMount: README quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cawecoy committed Mar 23, 2024
1 parent c840015 commit 042995a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ You can add a tooltip to fully show the event title when the user hovers over th
```php
public function eventDidMount() {
return <<<JS
function calendarEventTooltip(info){
function(info){
info.el.setAttribute("x-tooltip", "tooltip");
info.el.setAttribute("x-data", "{ tooltip: '"+info.event.title+"' }");
}
Expand Down

0 comments on commit 042995a

Please sign in to comment.