File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,16 @@ When creating an abstraction, we must implement all the methods and properties o
1515The 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
6668A 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 /**
You can’t perform that action at this time.
0 commit comments