Skip to content

Commit

Permalink
0.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Jul 24, 2024
1 parent 73b54c5 commit 5acc1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,8 @@ It is most effective if content is "paged" -- be-lazy really shouldn't hold a si

be-lazy is currently being used by one virtual list - [xtal-vlist](https://github.com/bahrus/xtal-vlist).

## Support for doing transform during instantiation

There are two additional properties that the user can specify in order to perform a [DTR-based](https://github.com/bahrus/trans-render) transformation when the template appears within the view pane.

They are "transform" and "host". The host provider will need to [carefully](https://github.com/bahrus/be-decorated#approach-i--programmatically-but-carefully) pass itself to the proxy behind the decorator via oTemplate.beDecorated.lazy.host. Both properties must be set in order for the template to be dynamically populated during instantiation.

Alternatively, the RenderContext can be passed via property ctx, so that the instantiated template can partake in reactive updates going forward.


[TODO] Support instantiating within shadow DOM

## Viewing this element locally

Expand Down
2 changes: 1 addition & 1 deletion demo/Example1.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{
"imports": {
"be-enhanced/": "/node_modules/be-enhanced/",
"be-hive/": "/be-hive/",
"be-hive/": "/node_modules/be-hive/",
"be-intersectional/": "/node_modules/be-intersectional/",
"mount-observer/": "/node_modules/mount-observer/",
"trans-render/": "/node_modules/trans-render/"
Expand Down

0 comments on commit 5acc1a1

Please sign in to comment.