optional colour text

This commit is contained in:
Kuldeep Matharu 2024-07-22 10:54:26 +01:00
parent cd132c9fd4
commit 098d62b284

View File

@ -16,6 +16,7 @@ export const Control_color = function ({
labelText = 'Label',
srOnly = false,
value = '#000000',
text = true,
defaultValue = false,
action = false,
randomColor = false,
@ -163,12 +164,13 @@ export const Control_color = function ({
const formGroup = form.group({
block: true,
children: [
this.color,
this.text
]
children: [this.color]
});
if (text) {
formGroup.appendChild(this.text);
}
if (randomColor) {
formGroup.appendChild(this.random.button);
}