@@ -33,6 +33,7 @@ $ yarn add @rapid-build-ui/rb-base
33
33
* [guid service](#guid-service)
34
34
* [type service](#type-service)
35
35
* [view directives](#view-directives)
36
+ * [property converters](#properties-converters)
36
37
37
38
* [ Slot Mixin] ( #slot-mixin ) (adds helpers onto this for working with slots)
38
39
@@ -43,7 +44,7 @@ $ yarn add @rapid-build-ui/rb-base
43
44
/* Example
44
45
**********/
45
46
import { RbBase , props , html } from ' ../../rb-base/scripts/rb-base.js' ;
46
- import view from ' ../../rb-base/scripts/public/view/directives.js' ;
47
+ import View from ' ../../rb-base/scripts/public/view/directives.js' ;
47
48
import template from ' ../views/rb-popover.html' ;
48
49
49
50
export class RbPopover extends RbBase () {
@@ -122,6 +123,25 @@ const guid = Guid.create();
122
123
```
123
124
124
125
126
+ ### property converters
127
+ * Methods
128
+ * valueless(val) :boolean
129
+
130
+ ``` js
131
+ // Example
132
+ import Converter from from ' ../../rb-base/scripts/public/props/converters.js' ;
133
+ class RbIcon {
134
+ static get props () {
135
+ return {
136
+ spin: Object .assign ({}, props .boolean , {
137
+ deserialize: Converter .valueless
138
+ })
139
+ };
140
+ }
141
+ }
142
+ ```
143
+
144
+
125
145
### type service
126
146
* Methods (** is.methods() : boolean ** )
127
147
* get(val) :string (returns val type)
@@ -152,13 +172,13 @@ to be used in view.
152
172
153
173
``` js
154
174
// Example
155
- import view from ' ../../rb-base/scripts/public/view/directives.js' ;
175
+ import View from ' ../../rb-base/scripts/public/view/directives.js' ;
156
176
```
157
177
158
178
``` html
159
- <!-- Example (import view object in js, see "How To Use"): -->
179
+ <!-- Example (import View object in js, see "How To Use"): -->
160
180
<ul >
161
- ${view .repeat(
181
+ ${View .repeat(
162
182
['hulk','thor'],
163
183
(hero, i) => html`<li >${i} ${hero}</li >`
164
184
)}
0 commit comments