File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 11@page " /affix"
2+ @using Microsoft .AspNetCore .Components .Rendering
23
34<h3 >@Localizer ["AffixTitle"]</h3 >
45
2930 </Affix >
3031 </div >
3132</DemoBlock >
33+
34+ <ClassTest Value2 =" Test" ></ClassTest >
35+
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the Apache 2.0 License
3+ // See the LICENSE file in the project root for more information.
4+ // Maintainer: Argo Zhang([email protected] ) Website: https://www.blazor.zone 5+
6+ using Microsoft . AspNetCore . Components . Rendering ;
7+
8+ namespace BootstrapBlazor . Server . Components . Samples ;
9+
10+ public class ClassBase : ComponentBase
11+ {
12+ [ Parameter ]
13+ [ EditorRequired ]
14+ public string ? Value { get ; set ; }
15+ }
16+
17+ public class ClassTest : ClassBase
18+ {
19+ [ Parameter ]
20+ public string ? Value2 { get ; set ; }
21+
22+ protected override void BuildRenderTree ( RenderTreeBuilder builder )
23+ {
24+ builder . AddContent ( 0 , Value ) ;
25+ builder . AddContent ( 1 , Value2 ) ;
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments