0.0.42 • Published 3 years ago

@evalink/cause v0.0.42

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

Cause - Design Components Library

Be careful with the usage of this design component library. It is currently in development and has not a stable release yet. The apis might change during the further development.

For more information get in touch with info@sitasys.com.

Getting started with evalink cause

This Section explains how to setup the evalink cause design library with an angular project.

Install evalink cause

To install evalink cause, open your terminal and run the following command in your angular root folder:

npm install @evalink/cause

Add the required module

You need to add the cause component's module to the associated angular module class of the used component. For example as showed in the following use of the cause-header directive:

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    HttpClientModule,
    // The cause-header directive belongs to the CauseLayoutModule
    CauseLayoutModule,
  ],
  providers: [],
  exports: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

Then you can use the module in the associated component template app.component.html.

<header cause-header></header>

Add the stylesheet imports

Design Modules

The evalink cause design components library is packed with the following useful modules. Each of them delivers components and directives to ensure a consistent experience through out the evalink ecosystem.

Cause Module

Pipes

Truncate Pipe

The truncate pipe helps you to shorten strings to a given length and append three dots(...). Use it in views where you need to make sure that the given content not exceed in length.

{{ exampleString | truncate }}
or
{{ exampleString | truncate:45 }}

Layout Module

The layout module helps you with structuring the general layout of an application. It provides components such as header, section and footer, to get a consistent look and feel through the all the public touchpoints.

Compontents

CauseHeader

Add a sticky header to the layout. It includes the evalink logo with a customisable link and a section to add own content, like a navigation menu or search functionality.

CauseSection

Create own meaning full sections with adjustable background color.

CauseFooter

Add a footer to the layout. It includes the Sitasys logo and a section to add own content, like a multi-row navigation menu.

Navigation Module

The navigation modules helps you with providing different kind of navigation menu and navigation elements. It handles also the responsive behaviour automatically.

Components

The navigation module exports the following components for creating navigation menus:

  • CauseNavTitle Add a title to navigation menus or lists. For example to display a title in a multi row menu in a website footer.
  • CauseDropdownMenu Create dropdown menus with a navigation list. use the CauseDropdownMenu in combination with the CauseNavList to display a proper styled dropdown menu out of the box. - CauseNavList Add a list with navigation items to a CauseDropdownMenu. This component serves as a container for multiple navigation list items.
  • CauseNavListItem A single item to add to a CauseNavList.

For more information get in touch with info@sitasys.com.

0.0.42

3 years ago

0.0.41

3 years ago

0.0.40

3 years ago

0.0.39

3 years ago

0.0.38

3 years ago

0.0.37

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.34

3 years ago

0.0.33

3 years ago

0.0.32

3 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago