add catery input with hints
This commit is contained in:
parent
1ab1bbef7e
commit
390b65cdb7
|
@ -753,10 +753,11 @@ class CCPMethodEditorController extends HTMLElement{
|
||||||
}
|
}
|
||||||
|
|
||||||
renderCategoryHints(){
|
renderCategoryHints(){
|
||||||
const cats = ["Uncategorized", this.getCurrentCategory()]
|
const cats1 = ["Uncategorized", this.getCurrentCategory()]
|
||||||
|
const cats = [...new Set(cats)]
|
||||||
return `
|
return `
|
||||||
<datalist id="categoryhints">
|
<datalist id="categoryhints">
|
||||||
${cats.map(c=>`<option value="${c}">${c}</option>`}
|
${cats.map(c=>`<option value="${c}">${c}</option>`)}
|
||||||
</datalist>
|
</datalist>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue