You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ public function run($sort_by, $sort_order) { }
161
161
...
162
162
```
163
163
164
-
`run()` method is resolved via Laravel service container so method injection is available here too.
164
+
`run()` method is resolved via Service Container, so method injection is available here too.
165
165
166
166
## Namespaces
167
167
@@ -201,7 +201,7 @@ In some situations it can be very beneficial to load widget content with AJAX.
201
201
Fortunately, this can be achieved very easily!
202
202
All you need to do is to change facade or blade directive - `Widget::` => `AsyncWidget::`, `@widget` => `@asyncWidget`
203
203
204
-
> Note: Since version 3.1 you no longer need `jquery` to make ajax calls. However you can set `use_jquery_for_ajax_calls` to `true` in the config file if you need it.
204
+
> Note: Since version 3.1 you no longer need `jquery` to make ajax calls. However you can set `use_jquery_for_ajax_calls` to `true` in the config file if you need for some reason.
205
205
206
206
By default nothing is shown until ajax call is finished.
207
207
@@ -241,7 +241,7 @@ Consider using web sockets too but they are waaaay harder to set up on the other
241
241
242
242
## Container
243
243
244
-
Async and Reloadable widgets both require some DOM interaction so they wrap all widget output in a container.
244
+
Async and Reloadable widgets both require some DOM interaction so they wrap all widget output in a html container.
245
245
This container is defined by AbstractWidget::container() method and can be customized therefore.
246
246
247
247
```php
@@ -279,14 +279,13 @@ class RecentNews extends AbstractWidget
279
279
```
280
280
281
281
No caching is turned on by default.
282
-
A cache key depends on widget name and each widget parameter.
283
-
override```cacheKey``` method if you need to adjust it.
282
+
A cache key depends on a widget name and each widget parameter.
283
+
Override```cacheKey``` method if you need to adjust it.
284
284
285
285
## Widget groups (extra)
286
286
287
-
In most cases Blade is a perfect tool fot setting the position and order of widgets.
288
-
However, in some cases you may find useful the approach with widget groups.
289
-
Please check the following example:
287
+
In most cases Blade is a perfect tool for setting the position and order of widgets.
288
+
However, in some cases you may find useful the approach with widget groups:
290
289
291
290
```php
292
291
// add several widgets to the 'sidebar' group anywhere you want (even in controller)
@@ -312,8 +311,8 @@ You can also set a separator to display between widgets in a group.
0 commit comments