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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,22 @@ request.errback { |response|
290
290
}
291
291
```
292
292
293
+
## Usage of JQuery plugins
294
+
Extra plugins used for JQuery aren't available to ruby code by default, you will have to `expose` these functions to opal-jquery.
295
+
296
+
```ruby
297
+
Element.expose :cool_plugin
298
+
```
299
+
300
+
Arguments to a `exposed` function will be passed as they are, so these arguments will have to be passed as native JS instead of ruby code. A conversion to native JS can be done with the `.to_n` method.
0 commit comments