jobpro-layouts
v1.1.5
Published
This carries the layout UI for Jobpro Applications
Readme
Layouts
This library was generated with Angular CLI version 16.1.0. Ensure your are currently working on at least version 16 or higher to make use of this library.
Installation
With npm
npm install --save jobpro-layouts
With yarn
yarn add jobpro-layouts
Initialization
Import the LayoutsModule to where you want to make use of it.
import { LayoutsModule } from 'layouts';
@NgModule({
declarations : [...],
import : [
LayoutsModule // <--- Add the LayoutsModule
],
bootstrap: [...]
})Components
- App Tray (completed)
- Sidebar (in progress)
- Searchbar (in progress)
- Profile card (completed)
App Tray
- environment (optional): A string which is either STAGING or PRODUCTION, default is staging.
- packageList (required): An array of the packages subscribed to e.g. [joble, echo].
- isAdmin (optional): Default is false.
- selectionNotifier: a callback that returns the selected package
<lib-tray [packageList]="packageList" [isAdmin]="isAdmin" (selectionNotifier)="selectionMade($event)"></lib-tray>Profile Card
- profile (required): An object carrying the users details. Model can be imported for use.
import (ProfileModel) from `layouts`selectedWorkspace (required): An object carrying the users current workspace. Model can be imported for use.
workspaceOptions (optional): An array of workspaces the user belongs to. Model can be imported for use.
import (WorkspaceModel) from `layouts`