code: function() {
              var that = this;
              var visu = allVisualizations[this.get("type")];
  
              return dialogs.fields("Edit", [
                  {
                      "title": {
                          'label': "Title",
                          'type': "text"
                      },
                      "size": {
                          'label': "Layout",
                          'type': "select",
                          'default': "small",
                          'options': {
                              'big': "Large",
                              'small': "Normal"
                          }
                      }
                  },
                  visu.config
              ], this.get("configuration"))
              .then(function(data) {
                  that.set("configuration", data);
                  return that.report.edit();
              });
          }
docs: Open configuration dialogs