ng-lightning

Native Angular components & directives for Lightning Design System

Github星跟蹤圖

ng-lightning

Build Status
Sauce Test Status
npm version
npm

Sauce Test Status

This library contains native Angular components and directives written from scratch in TypeScript using the Lightning Design System CSS framework.

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

Installation

Install through npm:

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>:

<link rel="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 called svg4everybody.
    Available on npm cdn here.

  • Element.classList on SVG elements, used by Angular's renderer.setElementClass. See here for more information. Use classList.js shim, available on npm cdn here.

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 the CONTRIBUTING.md doc for guidelines.

Need help?

For questions on how to use ng-lightning or how to contribute, please post questions to using the ng-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 through Saucelabs.

主要指標

概覽
名稱與所有者ng-lightning/ng-lightning
主編程語言TypeScript
編程語言TypeScript (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2016-03-01 12:46:58
推送於2024-07-03 18:59:06
最后一次提交2023-06-13 11:11:43
發布數65
最新版本名稱v9.0.0 (發布於 2023-06-13 11:11:43)
第一版名稱v0.1.0 (發布於 2016-03-04 02:58:00)
用户参与
星數0.9k
關注者數29
派生數121
提交數706
已啟用問題?
問題數179
打開的問題數27
拉請求數96
打開的拉請求數22
關閉的拉請求數304
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?