Skip to content

Commit 15c8d6b

Browse files
author
dutchenkoOleg
committed
readme
1 parent 65e72ba commit 15c8d6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ A getter that returns an object with default options, settings, or configuration
7171

7272
## Usage example
7373

74+
Abstract class example with interface implementation
75+
7476
```js
77+
// some-plugin-init/abstract.js
78+
7579
import $ from 'jquery'; // for example
7680
import 'some-jquery-plugin'; // for example
7781
import { WebPluginInterface } from 'web-plugin-interface';
@@ -120,7 +124,7 @@ export class SomeJqueryPluginAbstract extends WebPluginInterface {
120124
* @public
121125
* @returns Object
122126
*/
123-
get defaults (){
127+
get defaults () {
124128
return {
125129
// an example of some options of your plugin
126130
autoplay: false,

0 commit comments

Comments
 (0)