PhilipSkinner / elemental-lowcode

Elemental lowcode development platform.
MIT License
113 stars 17 forks source link

Interfaces - controller auto-loaded data #144

Open PhilipSkinner opened 2 years ago

PhilipSkinner commented 2 years ago

It can be pretty tiresome to write the same code again and again for loading data when a page/component loads - so we should have some some of configuring data which is loaded.

This should be held as configuration within the controller, something like:

{
  data : {
    languages : {
      source : "languages",
      pagination : {
        page : "$.page",
        pagesize : "$.pagesize"
      },
      filters : [
        {
          path : "$.name",
          value : "english"
        }
      ]      
    }
  }
}