rollthecloudinc / quell

Climate aware CMS breaking web apps free from carbon emissions.
https://demo.carbonfreed.app/pages/create-panel-page
GNU General Public License v3.0
14 stars 1 forks source link

Datasource allow multiple view panel content bindings #92

Open windbeneathyourwings opened 3 years ago

windbeneathyourwings commented 3 years ago

This is sort of a prerequisite for a better table style. Currently a dataset is only rendered using the first content binding. I would like to support rendering multiple panel content bindings for a datasource. When this is achieved users will be able to define multiple nested panel pages and bind them to the datasource to render multiple "columns" per data set. The first pane in each nested viewable would act as the header and all other panels would become part of the cell content for a table. This is just one example of how this could be used.

windbeneathyourwings commented 3 years ago

This is done. Now datasources support multiple viewable bindings. Each binding is rendered per row. This makes way for tables. Like the example here.

https://dpxmq1mxvsyda.cloudfront.net/dev-enhanced-table-v1

The only issue is really the initial flickering. Otherwise I think this is pretty powerful because all the features of panels can be used including nesting pages anywhere in the table or using forms for filters in headers.

windbeneathyourwings commented 2 years ago

the flickering of styling the content has been rectified by replacing the delay to detect content available with combination of observable conditions to satisfy before applying json css. This seems to have taken care of the problem.