-
Notifications
You must be signed in to change notification settings - Fork 1
Web App Component
This is a Web App wrapper component, that ensures that the application component runs authenticated. If upon app initialization, it is not yet authenticated to a 4D backend, this component will display a Login dialog to get user credentials and authenticate the user.
This Component should be used in cases where your Application acts as a workspace area for other sub-applications, usually lazy loaded, that run under it. But those sub-applications may also run standalone. Thus the Web App wrapper will ensure those sub-apps run authenticated to the 4D Backend database, if running in standalone mode.
The component's selector is <web-application>, and here is an example usage:
<web-application>
<record-list [editWindow]="editWindow" [dialogInstance]="dialog">
<query-band [enableSort]="true" [enableQBE]="true" [enableButtonBar]="true" [enableAddRecord]="true" [enableDeleteRecord]="true">
<queryband class="form-group">
<features-queryband #customQueryBand class="form-group"></features-queryband>
</queryband>
<custombuttonbar>
<button class="regularButton" style="width:120px;" (click)="checkFeature()">Analyze</button>
</custombuttonbar>
</query-band>
<datagrid
[model]="model"
[columns]="columnDefs"
[useLazyLoading]="true"
[optimizeGridLoading]="true"
[pageSize]="50"
[excelFilename]="'FeatureList.xlsx'"
>
</datagrid>
</record-list>
</web-application>
The Component takes no input and has no API, as it is simply a wrapper to other sub-applications.