fix: adding docstrings to the files where it was missing (#2101)

* fix: adding docstrings to missing files

* style: format code

* style: improve formatting

Co-authored-by: Jagruti Tiwari <jagrutit@cdac.in>
Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit is contained in:
Jagruti Tiwari
2022-10-03 13:03:23 +02:00
committed by GitHub
co-authored by Jagruti Tiwari rickstaa
parent 9e1fc0b7da
commit c03bb2f250
4 changed files with 59 additions and 6 deletions
+13
View File
@@ -12,6 +12,19 @@ import {
import { getStyles } from "../getStyles.js";
import { statCardLocales } from "../translations.js";
/**
* Create a stats card text item.
*
* @param {object[]} createTextNodeParams Object that contains the createTextNode parameters.
* @param {string} createTextNodeParams.label The label to display.
* @param {string} createTextNodeParams.value The value to display.
* @param {string} createTextNodeParams.id The id of the stat.
* @param {number} createTextNodeParams.index The index of the stat.
* @param {boolean} createTextNodeParams.showIcons Whether to show icons.
* @param {number} createTextNodeParams.shiftValuePos Number of pixels the value has to be shifted to the right.
* @param {boolean} createTextNodeParams.bold Whether to bold the label.
* @returns
*/
const createTextNode = ({
icon,
label,