Customize the code editor

The custom step allows user to write their own query step. It uses by default a basic textarea, but you might want to customize the code editor with the setCodeEditor interface.


Here is a simple example, on how to provide a textarea with a fix placeholder:

  props:['value', 'placeholder'],
  render(createElement) {
    return createElement("textarea", {
      domProps: {
        value: this.value,
        placeholder: "OMG I have to write code in here",
      attrs: {
        type: "text"
      on: {
        input: (event) => {this.$emit('input',},
        blur: (event) => {this.$emit('blur')},
        focus: (event) => {this.$emit('focus')},


setCodeEditor’s argument is a Vue component with the following requirements:

  • It must accept a value property and emit an input event as it will be used with a v-model

  • Optionally:

    • emit blur and focus event
    • a placeholder property