Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryBuilder Widget-Konfiguration #5

Closed
sandradamur opened this issue Mar 7, 2016 · 1 comment
Closed

QueryBuilder Widget-Konfiguration #5

sandradamur opened this issue Mar 7, 2016 · 1 comment
Assignees

Comments

@sandradamur
Copy link

Ich würde gerne das Fenster (Widget) welches bei einem konfigurierten Querytool erscheint unplatzierten. Leider ist diese Information nicht im manifest.json drin. Es sieht so aus als würde da generisch ein Widget aus dem FilterQuery.js erstellt (siehe unten). Wenn ich hier die Margin Box und den Titel anpasse funktioniert es, es gilt aber dann ja für alle Abfragen. Gibt es eine Möglichkeit das in der app.json zu konfigurieren?

if (event.options.editable === true) {
                var props = event._properties;
                var i18n = event._i18n.get();
                var tool = event.tool;
                var mapState = this._mapState;
                var dataModel = this._dataModel;
                var replacer = this._replacer;
                var logService = this._logService;
                var widget = this.widget = new EditableQueryBuilderWidget({
                    properties: props,
                    i18n: i18n.wizard,
                    tool: tool,
                    store: store,
                    mapState: mapState,
                    dataModel: dataModel,
                    replacer: replacer,
                    logService: logService
                });
                var window = this._windowManager.createWindow({
                    title: i18n.wizard.editWindowTitle,
                    marginBox: {
                       w: 550,
                        h: 274,
                        t: 100,
                        r: 100
                    },
                    content: widget,
                    closable: true,
                    resizable: true
                });
                window.show();
@matthiasstein
Copy link
Member

Hallo,
soeben wurde Version 3.1.7 veröffentlicht. Ab sofort ist es möglich die Widgets in der app.json zu konfigurieren.

Beispiel aus der Sample-App:

"templates": {
      "TemplateSelector": {
        "componentEnabled": false
      },
      "TemplateModel": {
        "_selectedTemplate": "seasons",
        "_templates": [
          {
            "name": "seasons",
            "widgets": [
              {
                "widgetRole": "userQueryBuilderWidget",
                "window": {
                  "marginBox": {
                    "l": 20,
                    "t": 100,
                    "w": 632,
                    "h": 280
                  }
                }
              },
              {
                "widgetRole": "editableQueryBuilderWidget",
                "window": {
                  "marginBox": {
                    "l": 20,
                    "t": 100,
                    "w": 550,
                    "h": 274
                  }
                }
              }
            ]
          }
        ]
      }
    }

@matthiasstein matthiasstein changed the title QueryBuilder QueryBuilder Widget-Konfiguration Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants