@@ -29,16 +29,18 @@ public function boot(Panel $panel): void
29
29
ImageColumn::macro ('simpleLightbox ' , macro: function ($ url = null ) {
30
30
$ extraAttributes = $ this ->extraAttributes [0 ] ?? [];
31
31
$ extraImgAttributes = $ this ->extraImgAttributes [0 ] ?? [];
32
+
32
33
/** @phpstan-ignore-next-line */
33
34
return $ this
34
35
->openUrlInNewTab ()
35
- ->extraAttributes (array_merge ($ extraAttributes , ['x-on:click ' => 'SimpleLightBox.open(event, \'' . $ url. '\') ' ]))
36
+ ->extraAttributes (array_merge ($ extraAttributes , ['x-on:click ' => 'SimpleLightBox.open(event, \'' . $ url . '\') ' ]))
36
37
->extraImgAttributes (array_merge ($ extraImgAttributes , ['class ' => 'simple-light-box-img-indicator ' ]));
37
38
});
38
39
39
40
ImageEntry::macro ('simpleLightbox ' , function ($ url = null ) {
40
41
$ extraAttributes = $ this ->extraAttributes [0 ] ?? [];
41
42
$ extraImgAttributes = $ this ->extraImgAttributes [0 ] ?? [];
43
+
42
44
/** @phpstan-ignore-next-line */
43
45
return $ this
44
46
->openUrlInNewTab ()
@@ -48,18 +50,20 @@ public function boot(Panel $panel): void
48
50
49
51
TextColumn::macro ('simpleLightbox ' , function ($ url ) {
50
52
$ extraAttributes = $ this ->extraAttributes [0 ] ?? [];
53
+
51
54
/** @phpstan-ignore-next-line */
52
55
return $ this
53
56
->openUrlInNewTab ()
54
- ->extraAttributes (array_merge ($ extraAttributes ,['x-on:click ' => 'SimpleLightBox.open(event, \'' . $ url . '\') ' ]));
57
+ ->extraAttributes (array_merge ($ extraAttributes , ['x-on:click ' => 'SimpleLightBox.open(event, \'' . $ url . '\') ' ]));
55
58
});
56
59
57
60
TextEntry::macro ('simpleLightbox ' , function ($ url ) {
58
61
$ extraAttributes = $ this ->extraAttributes [0 ] ?? [];
62
+
59
63
/** @phpstan-ignore-next-line */
60
64
return $ this
61
65
->openUrlInNewTab ()
62
- ->extraAttributes (array_merge ($ extraAttributes ,['x-on:click ' => 'SimpleLightBox.open(event, \'' . $ url . '\') ' ]));
66
+ ->extraAttributes (array_merge ($ extraAttributes , ['x-on:click ' => 'SimpleLightBox.open(event, \'' . $ url . '\') ' ]));
63
67
});
64
68
65
69
}
0 commit comments