0.4.0 • Published 3 years ago

smartwork-lib v0.4.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

SmartworkLib

This library was generated with Angular CLI version 9.1.12.

Installing the library

npm install smartwork-lib --save

Also, make sure to add the css styles to your angular.json

...
"styles": [
    "node_modules/smartwork-lib/assets/styles/smartwork.theme.scss",
    "src/styles.scss"
]
...

Using UIOptions

The UIOptions components allows for the personalization of certain aspects of the User Interface, such as the size of the font, the line spacing, the color scheme of the font family. It also stores the user preferences in a cookie, therefore in order to make it work you need to install ng-cookie-service in your Angular application.

npm install ng-cookie-service --save

After everything is installed, make sure to import the UIComponentsModule into your AppModule

import { UIOptionsModule } from 'smartwork-lib';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    UIOptionsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})

Then, you can add the UIOptions component to your HTML file (preferrably at the beginning of the HTML document), like this:

<ui-options></ui-options>
0.4.0

3 years ago

0.3.9

3 years ago

0.3.17

3 years ago

0.3.16

3 years ago

0.3.15

3 years ago

0.3.14

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.1.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.3.6

3 years ago

0.2.7

3 years ago

0.1.8

3 years ago

0.3.5

3 years ago

0.2.6

3 years ago

0.1.7

3 years ago

0.0.8

3 years ago

0.3.8

3 years ago

0.2.9

3 years ago

0.3.7

3 years ago

0.2.8

3 years ago

0.3.2

3 years ago

0.1.4

3 years ago

0.0.5

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.1.3

3 years ago

0.0.4

3 years ago

0.3.4

3 years ago

0.1.6

3 years ago

0.0.7

3 years ago

0.3.3

3 years ago

0.2.4

3 years ago

0.1.5

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago