allow static disabled fields in editor

This commit is contained in:
2021-03-29 13:21:33 +02:00
parent bf2c1f8a4c
commit dcd00ffaea
3 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ a.app-nav-child
align-items: center;
font-size: var(--font-size);
padding: 0 var(--padding) 0 calc(var(--padding) + 36px);
height: 40px;
height: 34px;
color: var(--color-text-dim);
&:hover, &.is-active
+2 -2
View File
@@ -113,11 +113,11 @@ textarea
display: none;
}
select
/*select
{
text-indent: -2px;
padding-left: 0;
}
}*/
}
}
+10
View File
@@ -83,6 +83,16 @@ class EditorField
}
/**
* Set this field to disabled
*/
disabled()
{
this.options.disabled = true;
return this;
}
/**
* Set this field as required
* @param {function|boolean} [condition] - Optionally only require this field when a condition is fulfilled or reset the required state with true/false