Beispiel #1
0
        public static void OpenElementNode(this RenderTreeBuilder builder, ref int sequence, string tag, Action <IStyledComponent> nodeAction)
        {
            builder.OpenElement(sequence++, tag);
            var node = new StyledNode();

            nodeAction(node);
            node.Apply(ref sequence, builder);
        }
Beispiel #2
0
        public static void OpenComponentNode <TComponent>(this RenderTreeBuilder builder, ref int sequence, Action <IStyledComponent> nodeAction)
            where TComponent : IComponent
        {
            builder.OpenComponent <TComponent>(sequence++);
            var node = new StyledNode();

            nodeAction(node);
            node.Apply(ref sequence, builder);
        }