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
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
### For Laravel 4, please use the [1.0 branch](https://github.com/Arrilot/laravel-widgets/tree/1.0)!
11
11
12
-
*Note: this is the doc for the latest stable release. If you need documentation for your specific version you can find it by clicking on a corresponding tag here https://github.com/Arrilot/laravel-widgets/releases*
12
+
> Note: This is the doc for the latest stable release. If you need documentation for your specific version you can find it by clicking on a corresponding tag here https://github.com/Arrilot/laravel-widgets/releases
13
13
14
14
## Installation
15
15
@@ -104,7 +104,7 @@ or even
104
104
105
105
There is no real difference between them. The choice is up to you.
106
106
107
-
*Note: For Laravel 5.0.0 - 5.1.3 you have to use `{!! !!}` tags instead of `{{ }}`*
107
+
> Note: For Laravel 5.0.0 - 5.1.3 you have to use `{!! !!}` tags instead of `{{ }}`
108
108
109
109
## Passing variables to widget
110
110
@@ -132,7 +132,7 @@ class RecentNews extends AbstractWidget {
132
132
```
133
133
`['count' => 10]` is a config array that can be accessed by $this->config.
134
134
135
-
*Note: Config fields that are not specified when you call the widget aren't overridden:*
135
+
> Note: Config fields that are not specified when you call the widget aren't overridden:
136
136
137
137
```php
138
138
class RecentNews extends AbstractWidget {
@@ -199,15 +199,13 @@ You can pass FQCN too.
199
199
In some situations it can be very beneficial to load widget content with AJAX.
200
200
201
201
Fortunately, this can be achieved very easily!
202
+
All you need to do is to change facade or blade directive - `Widget::` => `AsyncWidget::`, `@widget` => `@asyncWidget`
202
203
203
-
1. Make sure you have jquery loaded for ajax calls before the widget is called.
0 commit comments