项目作者: craigplummer

项目描述 :
Gem for including Office UI Fabric JS (http://dev.office.com/fabric) in your rails app
高级语言: Ruby
项目地址: git://github.com/craigplummer/office-ui-fabric-js-rails.git
创建时间: 2016-08-31T21:39:47Z
项目社区:https://github.com/craigplummer/office-ui-fabric-js-rails

开源协议:MIT License

下载


office-ui-fabric-core-rails

Gem Version

office-ui-fabric-rails integrates the Office UI Fabric JS framework from Microsoft into the Rails Asset Pipeline

Installation

Add this line to your application’s Gemfile:

  1. gem 'office-ui-fabric-js-rails'

And then execute:

  1. bundle

Usage

Add Office UI Fabric to your CSS

CSS

Add the following line to the end of your app/assets/stylesheets/application.css file:

  1. *= require fabric

If you also wish to use the Fabric components then you should also add

  1. *= require fabric.components

Sass

If you are using Sass then you can add the following to your application.scss instead:

  1. @import "Fabric";

If you also wish to use the Fabric components then you should also add

  1. @import "Fabric.Components";

Or you can just import the components you wish to use from the components directory. The names match those listed on the fabric site. E.g to include the Breadcrumb component add

  1. @import "components/Breadcrumb"

Add Office UI Fabric to your JS

Add the following to your app/assets/javascripts/application.js file:

  1. //= require fabric

For information on how to use the Office UI Fabric framework see the documentation

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/craigplummer/office-ui-fabric-js-rails.

For issues with Office UI Fabric itself please use https://github.com/OfficeDev/Office-UI-Fabric

License

The Office UI Fabric framework and the rest of the office-ui-fabric-js-rails project are licenced under the MIT License