diff --git a/docfx/articles/blazor/RENDERABLECONTENT.md b/docfx/articles/blazor/RENDERABLECONTENT.md index c9f49807..000d37ea 100644 --- a/docfx/articles/blazor/RENDERABLECONTENT.md +++ b/docfx/articles/blazor/RENDERABLECONTENT.md @@ -133,7 +133,6 @@ Primitive types are generated in **Control** presentation type whereas IxCompone ### **RenderIgnore and custom labels** - Thanks to the support of custom attributes in the PLC code you can specify, which elements you want to exclude from rendering. You can also set custom names for each element. See the example below. Let's have the following PLC code with attributes: @@ -172,6 +171,17 @@ testIxComponent: IxComponent; ```
+### **RenderTemplateOverride** + +You can use the RenderTemplateOverride attribute to override the generated template. This attribute replaces the generated template with the template you specified. + +When you specifying a template name, it is necessary to include the full name with a namespace. + +``` +{#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveStruct")]} +testRenderTemplateOverrideStruct : stSimplePrimitive; +``` + ### **Edit Property** Then renderer binds variables to `Cyclic` or `Edit` property of an Onliner. When an element gets focus, value is bound to `Edit` property and UI updates stops. After the focus is lost, the value is bound back to `Cyclic` property and the value in the UI start updating again. diff --git a/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/MAIN.st b/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/MAIN.st index c32eeb33..cde689f6 100644 --- a/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/MAIN.st +++ b/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/MAIN.st @@ -37,10 +37,10 @@ CLASS MAIN cu00: CU00x; cuBase: CUBase; - {#ix-attr:[RenderTemplateOverrideAttribute("ixBlazor.App.Custom.MySimplePrimitiveStruct")]} + {#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveStruct")]} OverridedSimpleStruct : stSimplePrimitive; - {#ix-attr:[RenderTemplateOverrideAttribute("ixBlazor.App.Custom.MySimplePrimitiveTag")]} + {#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveTag")]} OverridedSimpleTag : WORD; END_VAR diff --git a/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/testingProgram.st b/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/testingProgram.st index a1952df8..92530d1b 100644 --- a/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/testingProgram.st +++ b/src/AXSharp.blazor/tests/sandbox/ax-blazor-example/src/testingProgram.st @@ -23,10 +23,10 @@ CLASS testingProgram testLayouts : stTestLayouts; - {#ix-attr:[RenderTemplateOverrideAttribute("ixBlazor.App.Custom.MySimplePrimitiveStruct")]} + {#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveStruct")]} testRenderTemplateOverrideStruct : stSimplePrimitive; - {#ix-attr:[RenderTemplateOverrideAttribute("ixBlazor.App.Custom.MySimplePrimitiveTag")]} + {#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveTag")]} testRenderTemplateOverrideTag : WORD; END_VAR