0

The simple searching loadDataPublishTopic on aikau sources gives the following results:

  • AlfDocument.js
  • PropertyPicker.js
  • SimplePicker.js
  • AlfList.js
  • Paginator.js
  • UserList.js
  • lib.js
  • lib.js
  • SitePicker.js
  • CommentsList.js
  • DataListService.js
  • lib.js
  • get.js

Most of example use AlfList, if you at the list upper, you will find that all components are to specific. Am I right that there is not general component (or component container) with data loading? E.g. something like SelfLoadableWidget or SelfLoadablePanel which loads data which can be used by their child widgets?

Note

Aikua version is 1.0.97.1.

Cherry
  • 31,309
  • 66
  • 224
  • 364

1 Answers1

0

It still doesn't sound like you've worked through the tutorial (as I've suggested in answers to your previous questions) as a lot of this information is covered.

Essentially the whole idea is that data and display are decoupled. The AlfList (and its descendants) can be used to render lists of any data. The list widgets are solely responsible for managing the state of the data and delegate the presentation of the data to one or more view (see AlfListView).

Data to be rendered in the list can either be provided directly in the configuration of the list (via currentData) or requested via a service. A generic service exists (CrudService) that you can publish to providing the URL for the REST API you wish to call, but its preferable to use one of the many services dedicated to the specific data you want to work with (such as DocumentService, UserService, etc).

There is no "self-loading" components - however you can quite easily extend AlfList (or any of its descendants) and override the loadData function.

Dave Draper
  • 1,837
  • 11
  • 25