CRUDE-ASP
CRUDE-ASP copied to clipboard
New DataView Rendering Type
Type 1: DataTable Grid (same as today) Type 2: AngularJS Template
The AngularJS (AJS) template will work like this:
- There should be a folder for html partial templates containing AJS-compatible HTML.
- It should be possible to write or upload your own templates.
- The API endpoint should be configurable somehow (because one endpoint should return data in DataTable format, and another endpoint should return data in a custom JSON format). Possibly make it dependent on whether a Source stored procedure was chosen (table as source: use DataTable, procedure as source: use AJS template).
- The template loading should be done using the
jQuery.load()
function.
The DataTable Grid should probably also be implemented as a partial template file (thus the implementation should be agnostic about the actual web framework in use), and then the user would simply set a single "Layout" combo-box when configuring a DataView.
More detailed implementation design TBD