elemental-lowcode icon indicating copy to clipboard operation
elemental-lowcode copied to clipboard

Interfaces - controller auto-loaded data

Open PhilipSkinner opened this issue 2 years ago • 0 comments

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"
        }
      ]      
    }
  }
}

PhilipSkinner avatar May 26 '22 21:05 PhilipSkinner