allow static disabled fields in editor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -113,11 +113,11 @@ textarea
|
||||
display: none;
|
||||
}
|
||||
|
||||
select
|
||||
/*select
|
||||
{
|
||||
text-indent: -2px;
|
||||
padding-left: 0;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user