Commit 41ad0b7 1 parent fe4ac1a commit 41ad0b7 Copy full SHA for 41ad0b7
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ $ npm install @rapid-build-ui/rb-base
24
24
* Callbacks:
25
25
* viewReady()
26
26
* Creates this.rb object that contains a set of common helper objects:
27
+ * this.rb.elms
27
28
* this.rb.events
28
29
* this.rb.view
29
30
@@ -40,8 +41,8 @@ export class RbPopover extends RbBase() {
40
41
// Lifecycle
41
42
viewReady () { // :void
42
43
super .viewReady && super .viewReady (); // line required
43
- const trigger = this .shadowRoot .querySelector (' .trigger' );
44
- this .rb .events .add (trigger, ' click touchstart' , this .toggle );
44
+ this . rb . elms . trigger = this .shadowRoot .querySelector (' .trigger' );
45
+ this .rb .events .add (this . rb . elms . trigger , ' click touchstart' , this .toggle );
45
46
}
46
47
// Event Handler
47
48
toggle (e ) { // :void
@@ -118,6 +119,11 @@ to be used in view.
118
119
119
120
## API
120
121
122
+ ### this.rb.elms
123
+ * See "How To Use"*
124
+ This is object/hashmap to store component elements.
125
+
126
+
121
127
### this.rb.events
122
128
* Properties
123
129
* events :object (readonly, hashmap of active events)
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const RbBase = (Base = HTMLElement) => class extends withComponent(Base) {
14
14
constructor ( ) { // :void
15
15
super ( ) ;
16
16
this . rb = {
17
+ elms : { } ,
17
18
events : EventService . call ( this ) ,
18
19
view : ViewService . call ( this )
19
20
}
You can’t perform that action at this time.
0 commit comments