当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

ng-officeuifabric

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 傅明知
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

AngularJS (v1.6.10) directives specific to the Office UI Fabric

June 2018 - Now in Archive Mode

As of June 2018, this project is now in archive mode. This means there are is no planned work / updates for this project going forward. This project was 100% run and maintained by the community. As most of the world has moved on from AngularJS (v1.x) to Angular (v6) at the time of this update, we have decided to archive this project. There will be no more updates.

At this time there are no updates planned on supporting Angitgular 6.

Branch Status

master dev

This project, ng-OfficeUIFabric, is a community effort to build the Office UI Fabric components as a suite of AngularJS 1.6.10 directives to make it easier to use in Angular-based applications.

This library is intended to be used with AngularJS v1.6. It is not intended for Angular (aka Angular 2 or Angular 4). Please refer to issue #405 for a discussion on moving to future versions of Angular. At the moment, this repo is only focused on AngularJS but would like to move to Angular (ng2/ng4) as soon as this project is complete.

See it running

We have a web site where you can see these directives running at http://ngOfficeUiFabric.com. This is a great way to see what components are available and the ease of use for you as a developer.

Dive Right In

Want to see things working right away? Check out our Minimal Path to Awesome doc! Using it you'll clone the repo locally, install all the dependencies, run tests, see code coverage reports, build the library & see a working directive demo!

Basic installation & usage information is found on this page... more docs are in the docs guides.

Installation

Other than manually downloading the library, ng-OfficeUIFabric will be available in the following options. Then you just need to add references to the AngularJS, ngOfficeUiFabric JS & and Office UI Fabric CSS libraries and import the ngOfficeUiFabric modules and you're good to go. Check the package-ngofficeuifabric for simple usage info.

Bower

Install the library (which should also download the Angular & office-ui-fabric dependent libraries:

bower install ng-office-ui-fabric --save

NPM

Install the library (which should also download the Angular & office-ui-fabric dependent libraries:

npm install ng-office-ui-fabric --save

NuGet

Install the library (which should also download the AngularJS.Core & OfficeUiFabric dependent libraries.

Install-Package ng-office-ui-fabric

Direct Download

You can also directly download the built library if you wish. Grab either the unminified ngOfficeUiFabric.js or minified ngOfficeUiFabric.min.js from the package-ngofficeuifabric repo. You will need to also grab copies of Angular 1.6.10 and Office UI Fabric (you only need the CSS from Office UI Fabric). Installing from NPM, Bower or NuGet includes the dependencies.

CDN

Hosting facilitated by CDNJS, a community driven CDN. Simply add a reference in your page to the desired version available on CDNJS (check this page for the correct CDN reference for the desired version).

<script src="https://cdnjs.cloudflare.com/ajax/libs/ngOfficeUiFabric/{{version}}/ngOfficeUiFabric.min.js"></script>

NOTE: Be sure to use the most current version!

Usage

To use the ngOfficeUIFabric in your project, you will need to add a reference to the Office UI Fabric's CSS files (which the ngOfficeUIFabric takes a dependency on) and the ngOfficeUIFabric library.

Add Reference to Office UI Fabric MDL1 Core CSS

At the present time, use the MDL1 version of the Office UI Fabric Core CSS files. This is the 2.6.* branch of the library.

<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/2.6.3/css/fabric.min.css" />
<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/2.6.3/css/fabric.components.min.css" />

This assumes you are using the recommended Office UI Fabric CDN reference & not a local reference.

Add Reference to ngOfficeUIFabric LLibrary

We recommend using the CDN option when including the ngOfficeUIFabric in your projects:

<!-- add AngularJS... make sure to update for the desired version -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/{{VERSION}}/angular.min.js"></script>
<!-- add ngOfficeUIFabric... make sure to update for the desired version -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ngOfficeUiFabric/{{VERSION}}/ngOfficeUiFabric.min.js"></script>

Support

Supported Browsers

All directives in ng-OfficeUIFabric will work against the same versions that are commonly supported between the Office UI Fabric & AngularJS 1.6.10.

  • Google Chrome
  • Firefox
  • Internet Explorer (IE9+)
  • Edge
  • Safari

Think You Found a Bug

First check the issues list to see if someone else has already found it and there's an ongoing discussion. If not, create an issue or jump in the .

Contributing to the Project

This project is currently in maintenance mode. There are no planned updates to this project going forward. If you are interested in taking the project over, please submit a issue to the issue list expressing your interest.

We want help! Please take a look at the Contribution Guide for guidance.

 相关资料
  • 问题内容: 我试图了解和/ 之间的区别,但对我来说它们看起来相同。 我应该记住使用一个或另一个来区别吗? 问题答案: ngIf 该指令根据表达式 删除或重新创建 DOM树的一部分。如果赋值为的表达式的计算结果为假值,则将元素从DOM中删除,否则将元素的克隆重新插入DOM中。 删除元素时,使用它的作用域将被销毁,并在恢复该元素时创建一个新的作用域。在内部创建的作用域使用原型继承从其父作用域继承。 如

  • 问题内容: 任何人都可以为该JSFiddle提供正确的方法: JsFiddle链接 我正在尝试通过.class&#ID更改元素的类。 提前致谢 感谢tymeJV,新的JSFiddle: 解 问题答案: 正确的方法是根据切换变量使用,请考虑: CSS: JS: HTML: 通过根据变量(“ toggle”)是否为或分配引用的类(在上面为“红色”)来工作。

  • 问题内容: 我了解这一点,并会影响在元素上设置的类,并控制是否将元素呈现为DOM的一部分。 有没有对选择的准则在/ 或反之亦然? 问题答案: 取决于您的用例,但总结不同之处: 将从DOM中删除元素。这意味着您所有的处理程序或所有附加到这些元素的内容都将丢失。例如,如果将单击处理程序绑定到子元素之一,则将其评估为false时,将从DOM中删除该元素,并且即使稍后将其评估为true并显示该元素,您的单

  • NG Bootstrap 是基于 Angular(非 Angular.js)开发的 Bootstrap CSS 框架的指令集。 原生开发 专为Bootstrap 4 开发的Angular组件,开发了符合Angular生态系统的API,没有使用任何第三方Javascript库来实现,全都是纯粹的原生Javascript。 Boostrap的JS插件 支持全部Boostrap自带的Javascript

  • Mogwai ERDesigner NG是一个实体关系建模工具类似于ERWin。它设计成让数据库建模变得尽可能简易并为整个开发过程提供支持,从数据库设计到模式 (schema)和代码生成。此外ERDesigner还提供一个灵活的插件体系,从而可以通过安装新的插件来扩展该工具的功能。ERDesigner提 供的功能包括: *.能够使用一个强大和易于使用的图形编辑来设计数据库模型。 *.能够依据ER图

  • ng-inspector 是Chrome和Safari的浏览器扩展程序,它显示一个检查器面板,该面板实时显示当前页面中的AngularJS作用域层次结构,以及哪些控制器或指令与哪个作用域相关联。 将鼠标悬停在检查器中的范围上将突出显示该范围附加到的DOM元素。单击模型将console.log该模型的内容。 该扩展程序在带有AngularJS徽标的地址栏旁边添加了一个按钮,用于打开和关闭窗格。