Giter Site home page Giter Site logo

kossoy / fundamental-ngx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sap/fundamental-ngx

0.0 2.0 0.0 8.53 MB

Angular components implementation of SAP Fundamental UI design guideline. The library is aiming to provide an Angular implementation of the components designed in Fundamental UI design system.

License: Apache License 2.0

Shell 0.15% TypeScript 84.01% JavaScript 1.01% HTML 14.36% CSS 0.48%

fundamental-ngx's Introduction

Fundamental NGX - Angular components for Fiori Fundamentals

Description

Fundamental NGX is a set of Angular components that utilize the Fiori Fundamentals library, making it easy to start developing Angular Fundamental apps.

View live demo here. Build Status

Requirements

To download and use this library, you first need to install the node package manager. https://www.npmjs.com/get-npm

Fundamental NGX is intended for use with Angular 5 or newer. You should have some knowledge of Angular before using this library.

Download and Installation

1. Download Fundamental NGX and Fiori Fundamentals

npm install --save fiori-fundamentals fundamental-ngx

2. Include the Fiori Fundamentals CSS in your Angular application. Open your angular.json file and add the following to the styles array:

"./node_modules/fiori-fundamentals/dist/fiori-fundamentals.css"

Note the path may be different if your CLI configuration is not in the root of your project directory or if you have set a custom root.

3. You can import all of Fundamental NGX at once, or you can import individual components as you need them. To import the whole library, add:

import { FundamentalNgxModule } from 'fundamental-ngx';

To your app's module definition. Also add FundamentalNgxModule to the imports array in the @NgModule declaration.

To include an individual Angular Fundamental component in your application, you only need to import the relevant module. For example, to use Alerts, add

import { AlertModule } from 'fundamental-ngx/alert/alert.module';

to the file that declares the module you're adding alerts to. It can also be added to the app module declaration to be used site-wide. You also need to add AlertModule to your app or module's imports array.

4. Add the component to your HTML.

<fd-alert [dismissible]="true" type="warning" (close)="showAlert($event)"> A dismissible warning type alert. </fd-alert>

Demo Application

This repository contains a demo application in the docs/ directory. Run ng serve from the root of the repository to serve the app locally. The demo app utilizes the Angular Fundamental source code in this repository, so changes you make to any component's source will be reflected in the demo app.

View live demo here.

Tests

To run the unit tests for the fundamental-ngx component library, run ng test fundamental-ngx. Append --code-coverage to generate code coverage documentation.

Known Issues

Click here to view the current issues.

How to obtain support

If you encounter an issue, you can create a ticket or write an email to [email protected]

Contributing

If you want to contribute, please check the CONTRIBUTING.md documentation for contribution guidelines. Please follow the Angular commit message guidelines.

Check out the NEW_COMPONENT.md guide on building a new component for the library and creating the necessary documentation for your new component.

License

Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file

fundamental-ngx's People

Contributors

droshev avatar innaatanasova avatar mikerodonnell89 avatar n8-i avatar sbgreene1307 avatar thomasgauvin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.