diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js
index afd066a..6508459 100644
--- a/ccp/js/methodeditorcontroller.js
+++ b/ccp/js/methodeditorcontroller.js
@@ -142,6 +142,12 @@ class CCPMethodEditorController extends HTMLElement{
`
+
+ #annotation_input_icon = `
+
+ `
constructor(){
super();
@@ -443,6 +449,7 @@ class CCPMethodEditorController extends HTMLElement{
Inputs
+ ${this.renderStandardInputButtons()}
${this.renderPlusButton("add-input")}
@@ -653,6 +660,27 @@ class CCPMethodEditorController extends HTMLElement{
this.renderInputs()
})
+ this.#rootdoc.querySelector("button[name=add-ccpannotation]").addEventListener("click", ev=>{
+ ev.preventDefault()
+ ev.stopPropagation()
+ this.#tmp_inputs.push(
+ {
+ id : "new_input",
+ title : "New input",
+ description : "A new input field",
+ minOccurs : 1,
+ maxOccurs : 1,
+ schema : {
+ type : "string",
+ format : null,
+ contentMediaType : "text/plain",
+ default : ""
+ }
+ }
+ )
+ this.renderInputs()
+ })
+
this.#rootdoc.querySelector("div[name=input-list]").addEventListener("click", ev=>{
const evname = ev.target.getAttribute('name')
if(evname === "delete-input"){
@@ -840,12 +868,20 @@ class CCPMethodEditorController extends HTMLElement{
`
}
+ renderStandardInputButtons(){
+ return `
+
+ `
+ }
+
renderStandardOutputButtons(){
return `
-