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: website/docs/legacy/v5/basics/helpers-javascript.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ sidebar_label: JavaScript
10
10
11
11
Returns a camel-cased string.
12
12
13
-
*@param{string} string Add string to convert.
13
+
*@param string string Add string to convert.
14
14
15
15
**Usage:**
16
16
@@ -30,11 +30,11 @@ newSuperTestTitle
30
30
31
31
Checks whether the attributes exist in the attributes list. If the value is not set, it checks for the default value. If the default value is not set, it adds a fallback value depending on the type, or if `undefinedAllowed` is set to `true`, it sets it to `undefined`.
32
32
33
-
*@param{string} key Key to check.
34
-
*@param{array} attributes Array of attributes.
35
-
*@param{array} manifest Array of default attributes from manifest.json.
36
-
*@param{string} componentName The real component name.
37
-
*@param{boolean} undefinedAllowed Allowed detection of undefined values.
33
+
*@param string key Key to check.
34
+
*@param array attributes Array of attributes.
35
+
*@param array manifest Array of default attributes from manifest.json.
36
+
*@param string componentName The real component name.
37
+
*@param boolean undefinedAllowed Allowed detection of undefined values.
38
38
39
39
**Usage:**
40
40
@@ -48,11 +48,11 @@ Checks whether the attributes exist in the attributes list. If the value is not
48
48
49
49
Map and check attributes for responsive object from `responsiveAttributes` property from manifest.
50
50
51
-
*@param{string} keyName Key name to find in responsiveAttributes object.
52
-
*@param{array} attributes Array of attributes.
53
-
*@param{array} manifest Array of default attributes from manifest.json.
54
-
*@param{string} componentName The real component name.
55
-
*@param{boolean} undefinedAllowed Allowed detection of undefined values.
51
+
*@param string keyName Key name to find in responsiveAttributes object.
52
+
*@param array attributes Array of attributes.
53
+
*@param array manifest Array of default attributes from manifest.json.
54
+
*@param string componentName The real component name.
55
+
*@param boolean undefinedAllowed Allowed detection of undefined values.
56
56
*@throws \Exception If missing responsiveAttributes or keyName in responsiveAttributes.
57
57
*@throws \Exception If missing keyName in responsiveAttributes.
58
58
*@return mixed
@@ -132,7 +132,7 @@ Used to set and get cookie values.
132
132
Debounces the provided function. For more information, check [this blog post](https://davidwalsh.name/javascript-debounce-function).
133
133
134
134
*@param func Provided function to apply debounce.
135
-
*@param{int} wait Wait time for debounce.
135
+
*@param int wait Wait time for debounce.
136
136
137
137
**Usage:**
138
138
@@ -160,7 +160,7 @@ Checks if your browser's navigator is a specific device.
160
160
161
161
Used to get (require) all the files using the `require.context` method. It will find all files recursively in the folder using a regex. The following example will require all assets/index.js files inside the custom folder, so there is no need to manually add the files to the build.
162
162
163
-
*@param{object} paths All require.context patch to iterate.
163
+
*@param object paths All require.context patch to iterate.
164
164
165
165
**Usage:**
166
166
@@ -174,7 +174,7 @@ Used to get (require) all the files using the `require.context` method. It will
174
174
175
175
Returns the height of the element measured by the height of its children.
0 commit comments