badft.blogg.se

Import widgets on flask app builder
Import widgets on flask app builder








This is somehow the two major ingredients besides others like travel mode, travel time, etc…Īs described above, we will need to alter the widget.html file for this to allow a user to make some input and to trigger the route calculation with ORS: We will not cover this for this basic example! Setting up the user dialog for routingĪny routing application demands a user to put in the start as well as the end location for the demanded route. You might have noticed the ShowVertexFeatureAction in our Demo widget.

  • setting/Setting.js – the JS actions which we will use inside the setting dialog.
  • import widgets on flask app builder

  • setting/Setting.html – the setting dialog if you create a new app with this widget.
  • import widgets on flask app builder

    widget.html – the html element which shows up in the app.widget.js – which holds all JS code for the widget itself.config.json – which is filled when we save the app in the WAB.

    import widgets on flask app builder

    The widget of an app The folder/file structure for a widget










    Import widgets on flask app builder