You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-173Lines changed: 4 additions & 173 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,180 +19,11 @@ Below is a list of these methods and properties. Then you can see [an example im
19
19
20
20
---
21
21
22
-
-[`constructor()`](#constructor)
23
-
-[_~~defaults~~_](#defaults)
24
-
-[`defaultSettings`](#defaultsettings)
25
-
-[`defaultProps`](#defaultprops)
26
-
-[`_setup()`](#_setup)
27
-
-[`_beforeInitialize()`](#_beforeinitialize)
28
-
-[`_afterInitialize()`](#_afterinitialize)
29
-
-[`initialize()`](#initialize)
22
+
### Docs
30
23
24
+
[Go to docs section](https://github.com/WezomAgency/web-plugin-interface/blob/master/docs/index.md)
31
25
32
-
### `constructor()`
33
26
34
-
Here we describe the future instances.:
35
-
- get data from arguments
36
-
- declare instance properties
27
+
### License
37
28
38
-
### `defaults`
39
-
40
-
> since v3.0.0 property renamed to `defaultSettings`
41
-
42
-
### `defaultSettings`
43
-
44
-
_`public`_
45
-
_**`since v3.0.0`**_
46
-
47
-
A getter that returns an object with default options, settings, or configuration for your plugin.
48
-
49
-
### `defaultProps`
50
-
51
-
_`public`_
52
-
_**`since v3.0.0`**_
53
-
54
-
A getter that returns an object with predefined props.
55
-
Most often this is a list of options that are not included in the list of certain options of your plugin. But you need them for individual processing your options, settings, data, etc.
56
-
57
-
58
-
### `_setup()`
59
-
60
-
_`protected`_
61
-
62
-
The method is designed to prepare data for initialization.
63
-
For example, setting up future plugin options, etc.
64
-
65
-
### `_beforeInitialize()`
66
-
67
-
_`protected`_
68
-
69
-
It describes the actions that must be performed before initializing the plug-in.
70
-
For example, add the CSS class `.is-ready` to the HTML element to which your plugin will be applied.
71
-
72
-
### `_afterInitialize()`
73
-
74
-
_`protected`_
75
-
76
-
Here we can describe the actions that should be performed after the initialization of the plugin.
77
-
For example, add an additional handler to scroll or resize window events, which will update the parameters of your current plugin.
78
-
79
-
### `initialize()`
80
-
81
-
_`public`_
82
-
83
-
Directly launch your plugin.
84
-
85
-
---
86
-
87
-
## Usage example
88
-
89
-
Abstract class example with interface implementation
> since v3.0.0 property renamed to `defaultSettings`
26
+
27
+
### `defaultSettings`
28
+
29
+
_`public`_
30
+
_**`since v3.0.0`**_
31
+
32
+
A getter that returns an object with default options, settings, or configuration for your plugin.
33
+
34
+
### `defaultProps`
35
+
36
+
_`public`_
37
+
_**`since v3.0.0`**_
38
+
39
+
A getter that returns an object with predefined props.
40
+
Most often this is a list of options that are not included in the list of certain options of your plugin. But you need them for individual processing your options, settings, data, etc.
41
+
42
+
43
+
### `_setup()`
44
+
45
+
_`protected`_
46
+
47
+
The method is designed to prepare data for initialization.
48
+
For example, setting up future plugin options, etc.
49
+
50
+
### `_beforeInitialize()`
51
+
52
+
_`protected`_
53
+
54
+
It describes the actions that must be performed before initializing the plug-in.
55
+
For example, add the CSS class `.is-ready` to the HTML element to which your plugin will be applied.
56
+
57
+
### `_afterInitialize()`
58
+
59
+
_`protected`_
60
+
61
+
Here we can describe the actions that should be performed after the initialization of the plugin.
62
+
For example, add an additional handler to scroll or resize window events, which will update the parameters of your current plugin.
0 commit comments