Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Native Angular components & directives for Lightning Design System

License

NotificationsYou must be signed in to change notification settings

ng-lightning/ng-lightning

Repository files navigation

Build StatusSauce Test Statusnpm versionnpm

This library contains nativeAngular components and directives written from scratch in TypeScript using theLightning Design System CSS framework.

We are looking for community help to find and fix bugs, improve demo site and create new components.

Installation

Install throughnpm:

npm install --save ng-lightning

Dependencies

This library depends on Salesforce's LDS markup and CSS (tested with 2.9). We don't ship any CSS file, but you have to take care of including LDS CSS rules in your page. There are various ways to achieve this, for example compiling through their source files (@salesforce-ux/design-system) or by adding this into your<head>:

<linkrel="stylesheet"href="https://unpkg.com/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.min.css">

SVG Icons

Because of various cross-domain issues, if you want to use SLDS icons, you must provide a copy of the various sprite files (ie@salesforce-ux/design-system/assets/icons/action-sprite/svg/symbols.svg), served locally through your server.

IE11 support

Unfortunately, IE11 does not support two important features.

  • SVG External Content, used to load SVG icons from a spritemap. In order to support this, you will need to use a small script calledsvg4everybody.
    Available on npm cdnhere.

  • Element.classList on SVG elements, used by Angular'srenderer.setElementClass. Seehere for more information. UseclassList.js shim, available on npm cdnhere.

Typically, these shims should be placed within the<head> element.

Usage & Demo

http://ng-lightning.github.io/ng-lightning/

Contributing

We are always looking for high quality contributions! Please check theCONTRIBUTING.md doc for guidelines.

Need help?

For questions on how to use ng-lightning or how to contribute, please post questions toStack Overflow using theng-lightning tag. If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our GitHub Repository.

Companies using ng-lightning

Browsers

We support the same browsers and versions supported by both Angular and Salesforce's Lightning Design System.
Cross browser/environment testing is performed throughSaucelabs.

About

Native Angular components & directives for Lightning Design System

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors16


[8]ページ先頭

©2009-2025 Movatter.jp