Skip to content

Commit b3a10a9

Browse files
author
dutchenkoOleg
committed
readme
1 parent 5958171 commit b3a10a9

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ When creating an abstraction, we must implement all the methods and properties o
1515
The basis must be laid in an abstract class and brought to a final and typical concept in the classes of factories.
1616

1717
`WebPluginInterface` has the core methods and properties that are key to working with most web plugins.
18-
Below is a list of these methods and properties. Then you can see an example implementation.
18+
Below is a list of these methods and properties. Then you can see [an example implementation](##usage-example).
1919

20-
- `constructor()`
21-
- `_setup()`
22-
- `_beforeInitialize()`
23-
- `_afterInitialize()`
24-
- `initialize()`
25-
- `defaults`
20+
---
21+
22+
- [`constructor()`](#constructor)
23+
- [`_setup()`](#_setup)
24+
- [`_beforeInitialize()`](#_beforeinitialize)
25+
- [`_afterInitialize()`](#_afterinitialize)
26+
- [`initialize()`](#initialize)
27+
- [`defaults`](#defaults)
2628

2729

2830
### `constructor()`
@@ -65,6 +67,8 @@ Directly launch your plugin.
6567

6668
A getter that returns an object with default options, settings, or configuration for your plugin.
6769

70+
---
71+
6872
## Usage example
6973

7074
```js
@@ -106,7 +110,10 @@ export class SomeJqueryPluginAbstract extends WebPluginInterface {
106110

107111
/** @public */
108112
initialize(){
113+
this._setup();
114+
this._beforeInitialize();
109115
this.$container.someJqueryPlugin(this.settings);
116+
this._afterInitialize();
110117
}
111118

112119
/**

0 commit comments

Comments
 (0)