Skip to content

Commit

Permalink
Fix | Attributes | Type | Required | Default | Description |
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Jan 20, 2020
1 parent ec81e42 commit e263805
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ import nativeLazyLoading from 'native-lazy-loading';

### `options` Attributes

| Attributes | Type | Required | Default | Description |
|--------------|:------:|:--------:|:-------:|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| auto | Array | No | | Class array on which you like to apply `auto` value of `loading` attribute. |
| lazy | Array | No | | Class array on which you like to apply `lazy` value of `loading` attribute. |
| eager | Array | No | | Class array on which you like to apply `eager` value of `loading` attribute. |
| Attributes | Type | Required | Default | Description |
|--------------|:------:|:--------:|:-------:|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| auto | Array | No | | Class array on which you like to apply `auto` value of `loading` attribute. |
| lazy | Array | No | | Class array on which you like to apply `lazy` value of `loading` attribute. |
| eager | Array | No | | Class array on which you like to apply `eager` value of `loading` attribute. |
| defaultValue | String | No | `lazy` | This is applicable on all the other image and iframe tags which don't have any class **OR** which have class but not matched with any of the defined classes.<br><br>For further details, please check the [example 2](#add-loadinglazy-attribute-on-all-images-and-iframes-except-on-no-lazy-and-header-images-class) and [example 3](#add-loadinglazy-attribute-on-only-images-and-iframes-which-contains-lazyload-class) under *Examples with loading attribute only*. |

### `library` Attributes
Expand All @@ -103,6 +103,7 @@ import nativeLazyLoading from 'native-lazy-loading';
| class | String | No | `lazyload` | Every lazyload library works on its defined class. You can set the class name from here. |
| newSrc | String | No | | To load placeholder image like `loading.gif`, you can use this attribute. |
| notAllowed | Array | No | | To avoid using any third-party lazyload library in any specific image and/or iframe tag you can add its class name in this attribute.<br><br>No `compatibility` changes will be made on the matched classes. For further clarification check [this example](#add-loadinglazy-attribute-on-all-images-and-iframes-with-custom-class-except-on-no-lazy-class). |

## Examples with `loading` attribute only

### Add `loading="lazy"` attribute on all images and iFrames
Expand Down

0 comments on commit e263805

Please sign in to comment.