Преглед изворни кода

chore(documentation): Updated the documentation for `injectJavaScript` (#114)

ifsnow пре 6 година
родитељ
комит
6da6b417ba
1 измењених фајлова са 9 додато и 11 уклоњено
  1. 9
    11
      docs/Reference.md

+ 9
- 11
docs/Reference.md Прегледај датотеку

8
 
8
 
9
 - [`source`](Reference.md#source)
9
 - [`source`](Reference.md#source)
10
 - [`automaticallyAdjustContentInsets`](Reference.md#automaticallyadjustcontentinsets)
10
 - [`automaticallyAdjustContentInsets`](Reference.md#automaticallyadjustcontentinsets)
11
-- [`injectJavaScript`](Reference.md#injectjavascript)
12
 - [`injectedJavaScript`](Reference.md#injectedjavascript)
11
 - [`injectedJavaScript`](Reference.md#injectedjavascript)
13
 - [`mediaPlaybackRequiresUserAction`](Reference.md#mediaplaybackrequiresuseraction)
12
 - [`mediaPlaybackRequiresUserAction`](Reference.md#mediaplaybackrequiresuseraction)
14
 - [`nativeConfig`](Reference.md#nativeconfig)
13
 - [`nativeConfig`](Reference.md#nativeconfig)
53
 - [`goBack`](Reference.md#goback)
52
 - [`goBack`](Reference.md#goback)
54
 - [`reload`](Reference.md#reload)
53
 - [`reload`](Reference.md#reload)
55
 - [`stopLoading`](Reference.md#stoploading)
54
 - [`stopLoading`](Reference.md#stoploading)
55
+- [`injectJavaScript`](Reference.md#injectjavascriptstr)
56
 
56
 
57
 ---
57
 ---
58
 
58
 
96
 
96
 
97
 ---
97
 ---
98
 
98
 
99
-### `injectJavaScript`
100
-
101
-Function that accepts a string that will be passed to the WebView and executed immediately as JavaScript.
102
-
103
-| Type     | Required |
104
-| -------- | -------- |
105
-| function | No       |
106
-
107
----
108
-
109
 ### `injectedJavaScript`
99
 ### `injectedJavaScript`
110
 
100
 
111
 Set this to provide JavaScript that will be injected into the web page when the view loads.
101
 Set this to provide JavaScript that will be injected into the web page when the view loads.
546
 
536
 
547
 Stop loading the current page.
537
 Stop loading the current page.
548
 
538
 
539
+### `injectJavaScript(str)`
540
+
541
+```javascript
542
+injectJavaScript("... javascript string ...");
543
+```
544
+
545
+Executes the JavaScript string.
546
+
549
 ## Other Docs
547
 ## Other Docs
550
 
548
 
551
 Also check out our [Getting Started Guide](Getting-Started.md) and [In-Depth Guide](Guide.md).
549
 Also check out our [Getting Started Guide](Getting-Started.md) and [In-Depth Guide](Guide.md).