From 4cc108ab7f966e349dc307f4249405995f540b42 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Fri, 8 Aug 2025 19:33:12 +0200 Subject: [PATCH] [MISC] Formatting --- docs/development/custom/framework/js.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/development/custom/framework/js.md b/docs/development/custom/framework/js.md index cee8f4dc..5b78fb00 100644 --- a/docs/development/custom/framework/js.md +++ b/docs/development/custom/framework/js.md @@ -9,7 +9,7 @@ The JS file is already loaded in the base template, so it is globally available. The following functions are available in the JavaScript framework: -### `isArray()` +### isArray() Checks if the given value is an array. @@ -25,7 +25,7 @@ if (isArray(someVariable)) { } ``` -### `isObject()` +### isObject() Checks if the given value is an object. @@ -41,7 +41,7 @@ if (isObject(someVariable)) { } ``` -### `fetchGet()` +### fetchGet() Performs a GET request to the given URL and returns a Promise that resolves with the response data. @@ -62,13 +62,13 @@ fetchGet({ }); ``` -#### `fetchGet()` Parameters +#### fetchGet() Parameters - `url`: The URL to fetch data from. - `payload`: Optional data to send with the request. Can be an object or a string. - `responseIsJson`: Optional boolean indicating if the response should be parsed as JSON (default is `true`). -### `fetchPost()` +### fetchPost() Performs a POST request to the given URL with the provided data and returns a Promise that resolves with the response data. @@ -94,7 +94,7 @@ fetchPost({ }); ``` -#### `fetchPost()` Parameters +#### fetchPost() Parameters - `url`: The URL to send the POST request to. - `csrfToken`: The CSRF token to include in the request headers.