From c86805bb46b23351f65c0a81ab4f51730de1a223 Mon Sep 17 00:00:00 2001 From: stacyakveo Date: Tue, 18 Apr 2017 12:57:11 +0300 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 80177aa..449c6b0 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ That's it! Enjoy the plugin! Configuration ------------- -The directive itself takes as a parameter callback function, that returns promise after execution. If function returns value progress completes instantly. +The directive itself is taken as a parameter callback function, that returns promise after execution. If function returns value progress completes instantly. You can configure plugin using two different ways: * Using html attributes * Using javascript @@ -41,11 +41,11 @@ Here is a list of supported HTML attributes and their meaning: |---|---|---------| | pb-style | | Defines button appearance. Default value is fill. | | pb-direction | | To be used with pb-style=(fill or shrink). Defines the direction of the progress bar.
Default value is horizontal. | -| pb-random-progress | | Runs random fill function from the moment button is clicked till promise is resolved.
Default value is true. | +| pb-random-progress | | Runs random fill function from the moment button is clicked until promise is resolved.
Default value is true. | | pb-profile | _String value_ | The profile from which to fetch configuration during the button initialization.
For more information look JS configuration section | ##### Javascript configuration -For those ones, who don't like to have a lot of configuration in HTML as well to prevent the copy-paste there also is possibility to define configuration in Javascript using profiles. +For those ones, who don't like neither to have a lot of configuration in HTML nor to prevent the copy-paste, there also is a possibility to define configuration in Javascript using profiles. To do this, you need to inject `progressButtonConfigProvider` during the app configuration: ```javascript mdl.config(function(progressButtonConfigProvider) { @@ -55,13 +55,13 @@ mdl.config(function(progressButtonConfigProvider) { }); }); ``` -In this example new profile called 'testProfile' created. You can then apply it to you button like this: +In this example new profile called 'testProfile' created. Afterwards you can apply it to your button like this: ```html ``` -This would create new button with style _shrink_ and _vertical_ direction. +This would create a new button in style _shrink_ and _vertical_ direction. -You can as well define default profile, that will be applied to all the buttons across your application: +You can also define default profile, that will be applied to all the buttons across your application: ```javascript progressButtonConfigProvider.profile({ style: 'shrink',