Home - NSHMP Angular Library User Guide
Components to create the about page.
<nshmp-lib-ng-about-content>
<nshmp-lib-ng-about-description-title>
NSHMP Application
</nshmp-lib-ng-about-description-title>
Application description.
</nshmp-lib-ng-description>
<!-- Using this application panel -->
<nshmp-lib-ng-about-using-application-expansion-panel>
<!-- About the header controls -->
<nshmp-lib-ng-about-header-controls></nshmp-lib-ng-about-header-controls>
<!-- About the control panel -->
<nshmp-lib-ng-about-control-panel></nshmp-lib-ng-about-control-panel>
<!-- About main content -->
<nshmp-lib-ng-about-main-content-tabs [tabInfo]="tabInfo">
</nshmp-lib-ng-about-main-content-tabs>
<!-- About Plotly -->
<nshmp-lib-ng-about-plotly></nshmp-lib-ng-about-plotly>
<!-- About settings -->
<nshmp-lib-ng-about-settings></nshmp-lib-ng-about-settings>
</nshmp-lib-ng-about-using-application-expansion-panel>
</nshmp-lib-ng-about-content>
import {AboutMainContentTab} from '@ghsc/nshmp-lib-ng/about';
export class MyAboutPage {
tabInfo: AboutMainContentTab = [
{
tabDescription: 'Show the plot',
tabTitle: 'Plots',
},
{
tabDescription: 'Shows the data table',
tabTitle: 'Data',
},
];
}
import {NshmpAboutModule} from '@ghsc/nshmp-lib-ng/about';
@NgModule({
declarations: [MyAboutPage],
imports: [NshmpAboutModule],
})
export class MyApplicationModule {}
Main content for making an about page with default expansion panels.
See AboutContentComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-content></nshmp-lib-ng-about-content>
Expansion panel content describing the control panel for an application.
See AboutControlPanelComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-control-panel></nshmp-lib-ng-about-control-panel>
ng-content
for application specific expansion panels.
See AboutExpansionPanelsComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-expansion-panels></nshmp-lib-ng-about-expansion-panels>
Expansion panel content describing the header controls of an application.
See AboutHeaderControlsComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-header-controls></nshmp-lib-ng-about-header-controls>
Content about ArcGIS.
See AboutArcgisComponent for input parameters.
Example :<nshmp-lib-ng-about-arcgis></nshmp-lib-ng-about-arcgis>
Content describing the tabs in the application.
See AboutMainContentTabsComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-main-content-tabs></nshmp-lib-ng-about-main-content-tabs>
Information about navigating the application.
See AboutNavigatingExpansionPanel for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-navigating-expansion-panel></nshmp-lib-ng-about-navigating-expansion-panel>
Content about Plotly usage in an application.
See AboutPlotlyComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-plotly></nshmp-lib-ng-about-plotly>
Information about application settings.
See AboutSettingsComponent for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-settings></nshmp-lib-ng-about-settings>
About page description.
See DesciptionComponent.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-description></nshmp-lib-ng-about-description>
About page description title.
See DescriptionTitleComponent.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-description-title></nshmp-lib-ng-about-description-title>
Contact us content.
See ContactUsExpansionPanel for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-contact-us-expansion-panel></nshmp-lib-ng-about-contact-us-expansion-panel>
Information about saving application's settings.
See SavingSettingsExpansionPanel for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-saving-settings-expansion-panel></nshmp-lib-ng-about-saving-settings-expansion-panel>
Information about using the application.
See UsingApplicationExpansionPanel for input parameters.
To use import NshmpAboutModule.
Example :<nshmp-lib-ng-about-using-application-expansion-panel></nshmp-lib-ng-about-using-application-expansion-panel>
Run npm run ng -- generate component component-name --project=nshmp-lib-ng-about
to generate a new component.
Can also use npm run ng -- generate directive|pipe|service|class|guard|interface|enum|module --project=nshmp-lib-ng-about
.
Note: Don't forget to add
--project=nshmp-lib-ng-about
or else it will be added to the default project in theangular.json
file.
Run npm run test -- projects/nshmp-lib-ng/about
to execute the unit tests.
To get more help on the Angular CLI use npm run ng -- help
or go
check out the Angular CLI Overview and Command Reference page.