Add tooltips to Player Settings page.
This commit is contained in:
parent
de93790882
commit
3b159632b5
|
@ -183,6 +183,7 @@ const buildRangeSettings = (parentElement, settings) => {
|
||||||
optionName.className = 'option-name';
|
optionName.className = 'option-name';
|
||||||
const optionLabel = document.createElement('label');
|
const optionLabel = document.createElement('label');
|
||||||
optionLabel.setAttribute('for', settingId);
|
optionLabel.setAttribute('for', settingId);
|
||||||
|
optionLabel.setAttribute('data-tooltip', setting.description);
|
||||||
optionLabel.innerText = setting.friendlyName;
|
optionLabel.innerText = setting.friendlyName;
|
||||||
optionName.appendChild(optionLabel);
|
optionName.appendChild(optionLabel);
|
||||||
optionRow.appendChild(optionName);
|
optionRow.appendChild(optionName);
|
||||||
|
|
Loading…
Reference in New Issue