This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Builds a tree-like structure of datasource item's descendants | |
| /// </summary> | |
| /// <seealso cref="Sitecore.LayoutService.ItemRendering.ContentsResolvers.RenderingContentsResolver" /> | |
| public class DescendantsRenderingContentsResolver : Sitecore.LayoutService.ItemRendering.ContentsResolvers.RenderingContentsResolver | |
| { | |
| protected override JObject ProcessItem(Item item, IRenderingConfiguration renderingConfig) | |
| { | |
| var jObject = base.ProcessItem(item, renderingConfig); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * react-helper.js | |
| * Source: https://gist.github.com/anastasiya29/8574b153b956ddb7abc928c8eaf7839a | |
| * | |
| * Helper for Facebook's React UI Library. Adds support for declaring | |
| * component from HTML. Adds support for dependency injection. | |
| * | |
| * Usage: | |
| * 1. Register a component with optional dependencies: | |
| * ReactHelper.register('MyComponent', MyComponent, { depName: depFunc }) |