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
+34-8Lines changed: 34 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,25 +18,33 @@ Here's a simple example of how to use AvalynxLoader in your project:
18
18
19
19
## Installation
20
20
21
-
To use AvalynxLoader in your project, you can directly include it in your HTML file.
21
+
To use AvalynxLoader in your project, you can directly include it in your HTML file. Ensure you have Bootstrap 5.3 or higher included in your project for AvalynxLoader to work correctly.
Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxLoader displays correctly.
90
+
65
91
## Usage
66
92
67
93
To use AvalynxLoader in your project, include the AvalynxLoader JavaScript file in your project and initialize the class with the appropriate selector.
@@ -77,11 +103,11 @@ myLoader.load=false;
77
103
78
104
AvalynxLoader allows the following options for customization:
79
105
80
-
-`selector`: A custom selector for targeting tables within the DOM (default: `.avalynx-loader`).
106
+
-`selector`: A custom selector for targeting tables within the DOM (default: `'.avalynx-loader'`).
81
107
-`options`: An object containing the following keys:
82
-
-`className`: (string) A custom class name for the loader element (default: `spinner-border text-primary`).
108
+
-`className`: (string) A custom class name for the loader element (default: `'spinner-border text-primary'`).
83
109
-`language` An object containing the following keys:
84
-
-`loaderText`: (string) A custom text for the loader element (default: `Loading...`). If set to empty string, no text will be displayed.
110
+
-`loaderText`: (string) A custom text for the loader element. If set to empty string, no text will be displayed. (default: `'Loading...'`).
"description": "AvalynxLoader is a lightweight JavaScript library designed to provide a loading overlay for DOM elements. Based on Bootstrap >=5.3 without any framework dependencies.",
* @param {string} selector - The selector for the element(s) to update.
14
-
* @param {object} options - Options for the loader.
15
-
* @param {string} options.className - The class name for the loader spinner.
16
-
* @param {object} language - Language settings for the loader.
17
-
* @param {string} language.loaderText - The text to display with the loader spinner.
13
+
* @param {string} selector - A custom selector for targeting tables within the DOM (default: '.avalynx-loader').
14
+
* @param {object} options - An object containing the following keys:
15
+
* @param {string} options.className - A custom class name for the loader element (default: 'spinner-border text-primary').
16
+
* @param {object} language - An object containing the following keys:
17
+
* @param {string} language.loaderText - A custom text for the loader element. If set to empty string, no text will be displayed. (default: 'Loading...').
* @param {string} selector - The selector for the element(s) to update.
14
-
* @param {object} options - Options for the loader.
15
-
* @param {string} options.className - The class name for the loader spinner.
16
-
* @param {object} language - Language settings for the loader.
17
-
* @param {string} language.loaderText - The text to display with the loader spinner.
13
+
* @param {string} selector - A custom selector for targeting tables within the DOM (default: '.avalynx-loader').
14
+
* @param {object} options - An object containing the following keys:
15
+
* @param {string} options.className - A custom class name for the loader element (default: 'spinner-border text-primary').
16
+
* @param {object} language - An object containing the following keys:
17
+
* @param {string} language.loaderText - A custom text for the loader element. If set to empty string, no text will be displayed. (default: 'Loading...').
* @param {string} selector - The selector for the element(s) to update.
14
-
* @param {object} options - Options for the loader.
15
-
* @param {string} options.className - The class name for the loader spinner.
16
-
* @param {object} language - Language settings for the loader.
17
-
* @param {string} language.loaderText - The text to display with the loader spinner.
13
+
* @param {string} selector - A custom selector for targeting tables within the DOM (default: '.avalynx-loader').
14
+
* @param {object} options - An object containing the following keys:
15
+
* @param {string} options.className - A custom class name for the loader element (default: 'spinner-border text-primary').
16
+
* @param {object} language - An object containing the following keys:
17
+
* @param {string} language.loaderText - A custom text for the loader element. If set to empty string, no text will be displayed. (default: 'Loading...').
* @param {string} selector - The selector for the element(s) to update.
14
-
* @param {object} options - Options for the loader.
15
-
* @param {string} options.className - The class name for the loader spinner.
16
-
* @param {object} language - Language settings for the loader.
17
-
* @param {string} language.loaderText - The text to display with the loader spinner.
13
+
* @param {string} selector - A custom selector for targeting tables within the DOM (default: '.avalynx-loader').
14
+
* @param {object} options - An object containing the following keys:
15
+
* @param {string} options.className - A custom class name for the loader element (default: 'spinner-border text-primary').
16
+
* @param {object} language - An object containing the following keys:
17
+
* @param {string} language.loaderText - A custom text for the loader element. If set to empty string, no text will be displayed. (default: 'Loading...').
0 commit comments