mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-10-05 01:31:57 +02:00
optional colour text
This commit is contained in:
parent
cd132c9fd4
commit
098d62b284
@ -16,6 +16,7 @@ export const Control_color = function ({
|
|||||||
labelText = 'Label',
|
labelText = 'Label',
|
||||||
srOnly = false,
|
srOnly = false,
|
||||||
value = '#000000',
|
value = '#000000',
|
||||||
|
text = true,
|
||||||
defaultValue = false,
|
defaultValue = false,
|
||||||
action = false,
|
action = false,
|
||||||
randomColor = false,
|
randomColor = false,
|
||||||
@ -163,12 +164,13 @@ export const Control_color = function ({
|
|||||||
|
|
||||||
const formGroup = form.group({
|
const formGroup = form.group({
|
||||||
block: true,
|
block: true,
|
||||||
children: [
|
children: [this.color]
|
||||||
this.color,
|
|
||||||
this.text
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (text) {
|
||||||
|
formGroup.appendChild(this.text);
|
||||||
|
}
|
||||||
|
|
||||||
if (randomColor) {
|
if (randomColor) {
|
||||||
formGroup.appendChild(this.random.button);
|
formGroup.appendChild(this.random.button);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user