changed description to textarea and show it without trigger
This commit is contained in:
parent
45ab5dccca
commit
ccd75c7e6e
|
@ -246,13 +246,16 @@ class CCPBaseInputWidgetController extends HTMLElement{
|
|||
<div>
|
||||
${this.required ? `<span title="Required" class="p-1 text-danger">*</span>` : ``}
|
||||
${this.title}
|
||||
<span class="badge text-primary" title="${this.#description}" alt="${this.#description}">?</span>
|
||||
<!--span class="badge text-primary" title="${this.#description}" alt="${this.#description}">?</span-->
|
||||
</div>
|
||||
<div name="tools" class="d-flex" style="gap:2px">
|
||||
<div name="plusminus">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-none">
|
||||
<small class="text-muted>${this.#description}</small>
|
||||
</div>
|
||||
<div name="content">
|
||||
</div>
|
||||
</label>
|
||||
|
|
|
@ -78,7 +78,9 @@ class CCPInputWidgetEditorController extends HTMLElement{
|
|||
</div>
|
||||
<div class="mb-3">
|
||||
<div class="form-field" title="description">
|
||||
<input name="description" class="form-control" placeholder="description" value="${input.description}" required="required" ${ input.id === 'ccpimage' ? 'readonly' : ''}/>
|
||||
<textarea rows="1" name="description" class="form-control" placeholder="description" required="required" ${ input.id === 'ccpimage' ? 'readonly' : ''}>
|
||||
${input.description}
|
||||
<textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
|
|
|
@ -44,7 +44,8 @@ class CCPOutputWidgetEditorController extends HTMLElement {
|
|||
</div>
|
||||
<div class="mb-3">
|
||||
<div class="form-field" title="Description">
|
||||
<input name="description" class="form-control" placeholder="description" value="${this.#output.description}" required="required"/>
|
||||
<textarea rows="1" name="description" class="form-control" placeholder="description" required="required">
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
|
|
Loading…
Reference in New Issue