This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spinner): attribute rename & validation
Added attribute validation and error logging to the console to address directive guidelines [007](/~https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/docs/guides/DIRECTIVE-CHECKLIST.md#directive-attribute-validation) & [008](/~https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/docs/guides/DIRECTIVE-CHECKLIST.md#error-messages). BREAKING CHANGE: uif-spinner's `uif-spinnersize` attribute changed to `uif-size`. Change your code from this: ```html <uif-spinner uif-spinnersize="large"></uif-spinner> ``` To this: ```html <uif-spinner uif-size="large"></uif-spinner> ``` Closes #100. Closes #102. Closes #120.
- Loading branch information
1 parent
72834f8
commit 9ce8adc
Showing
5 changed files
with
73 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
/** | ||
* | ||
* Enum for spinner sizes supported by Office UI Fabric. | ||
* | ||
* @readonly | ||
* @enum {string} | ||
* @usage | ||
* | ||
* It is used to define size the spinner that will rendered by `uif-spinner` directive. | ||
* | ||
* let size: string = SpinnerSize[SpinnerSize.large]; | ||
*/ | ||
export enum SpinnerSize { | ||
'small', | ||
'large' | ||
} |