Browse Source

Exposed missing API for dynamic components

MarcinZiabek 2 years ago
parent
commit
a5004b986c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/QuestPDF/Fluent/DynamicComponentExtensions.cs

+ 5 - 0
Source/QuestPDF/Fluent/DynamicComponentExtensions.cs

@@ -10,5 +10,10 @@ namespace QuestPDF.Fluent
             var componentProxy = DynamicComponentProxy.CreateFrom(dynamicElement);
             element.Element(new DynamicHost(componentProxy));
         }
+        
+        public static void Element(this IContainer element, IDynamicElement child)
+        {
+            ElementExtensions.Element(element, child);
+        }
     }
 }