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
|`cacheEnabled`|`boolean`| Useful when we want to cache the templates and placeholders to optimize view rendering.|
111
-
|`startWithPlaceholderAsap`|`boolean`| Whether to start with the placeholder asap or not. If `true`, the placeholder will be rendered immediately, without waiting for the template to be visible. This is useful when you want to render the placeholder immediately, but you don't want to wait for the template to be visible. This is to counter concurrent rendering, and to avoid flickering. |
112
-
|`keepLastKnownSize`|`boolean`| This will keep the last known size of the host element while the template is visible. It sets 'minHeight' to the host node|
113
-
|`useContentVisibility`|`boolean`| It will add the `content-visibility` CSS class to the host element, together with `contain-intrinsic-width` and `contain-intrinsic-height` CSS properties. |
114
-
|`useContainment`|`boolean`| It will add `contain` css property with: <br/> - `size layout paint`: if `useContentVisibility` is `true` && placeholder is visible <br/> - `content`: if `useContentVisibility` is `false` or template is visible|
115
-
|`placeholderStrategy`|`boolean`| The strategy to use for rendering the placeholder. <br/> Defaults to: `low` <br/> [Read more about strategies](../../cdk/render-strategies/strategies/concurrent-strategies)|
116
-
|`templateStrategy`|`boolean`| The strategy to use for rendering the template. <br/> Defaults to: `normal` <br/> [Read more about strategies](../../cdk/render-strategies/strategies/concurrent-strategies)|
|`cacheEnabled`|`boolean`| Useful when we want to cache the contents and placeholders to optimize view rendering. |
111
+
|`startWithPlaceholderAsap`|`boolean`| Whether to start with the placeholder asap or not. If `true`, the placeholder will be rendered immediately, without waiting for the content to be visible. This is useful when you want to render the placeholder immediately, but you don't want to wait for the content to be visible. This is to counter concurrent rendering, and to avoid flickering. |
112
+
|`keepLastKnownSize`|`boolean`| This will keep the last known size of the host element while the content is visible. It sets 'minHeight' to the host node |
113
+
|`useContentVisibility`|`boolean`| It will add the `content-visibility` CSS class to the host element, together with `contain-intrinsic-width` and `contain-intrinsic-height` CSS properties. |
114
+
|`useContainment`|`boolean`| It will add `contain` css property with: <br/> - `size layout paint`: if `useContentVisibility` is `true` && placeholder is visible <br/> - `content`: if `useContentVisibility` is `false` or content is visible |
115
+
|`placeholderStrategy`|`boolean`| The strategy to use for rendering the placeholder. <br/> Defaults to: `low` <br/> [Read more about strategies](../../cdk/render-strategies/strategies/concurrent-strategies)|
116
+
|`contentStrategy`|`boolean`| The strategy to use for rendering the content. <br/> Defaults to: `normal` <br/> [Read more about strategies](../../cdk/render-strategies/strategies/concurrent-strategies)|
117
117
118
118
### RxVirtualViewConfig
119
119
120
120
Defines an interface representing all configuration that can be adjusted on provider level.
121
121
122
122
```typescript
123
-
interfaceRxVirtualViewConfig {
123
+
exportinterfaceRxVirtualViewConfig {
124
124
keepLastKnownSize:boolean;
125
125
useContentVisibility:boolean;
126
126
useContainment:boolean;
127
127
placeholderStrategy:RxStrategyNames<string>;
128
-
templateStrategy:RxStrategyNames<string>;
128
+
contentStrategy:RxStrategyNames<string>;
129
129
cacheEnabled:boolean;
130
130
startWithPlaceholderAsap:boolean;
131
131
cache: {
132
132
/**
133
-
* The maximum number of templates that can be stored in the cache.
133
+
* The maximum number of contents that can be stored in the cache.
134
134
* Defaults to 20.
135
135
*/
136
-
maxTemplates:number;
136
+
contentCacheSize:number;
137
137
138
138
/**
139
139
* The maximum number of placeholders that can be stored in the cache.
140
140
* Defaults to 20.
141
141
*/
142
-
maxPlaceholders:number;
142
+
placeholderCacheSize:number;
143
143
};
144
144
}
145
145
```
@@ -172,12 +172,12 @@ This is the default configuration which will be used when no other config was pr
0 commit comments