TypedInput Change options upon change event

Hi,

How can I change the options of the initialized dropdown for typedinput? the on change event id being triggered but the options are not changing.

Here is my initial creation of the typedinput.

         var methodsArr = []
          Object.keys(res).forEach(row => {
            methodsArr.push({
              value: row,
              label: row
            })
          })

          $('#node-input-method').typedInput({
            type: 'method',
            types: [
              {
                value: 'method',
                default: method,
                options: methodsArr
              }
            ]
          })

here is my onchange event

$('#node-input-method').on('change', () => {
        console.log(node.args[node.method])
        node.method = $('#node-input-method').val()

        var functionsArr = []
        Object.keys(node.args[node.method]).forEach(row => {
          functionsArr.push({
            value: row,
            label: row
          })
        })
        $('#node-input-webhook').typedInput({
          type: 'webhook',
          types: [
            {
              value: 'webhook',
              default: webhook,
              options: functionsArr
            }
          ]
        })

      })

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.