Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content component added #42

Merged
merged 4 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public partial class Index
- [ECharts](#echarts) **(since v0.3.2)**
- [Checkbox](#checkbox)
- [Chip](#chip)
- [Content](#content)
- [Content Header](#content-header) **(since v0.3.3)**
- [Date Dropdown](#date-dropdown)
- [Date Picker](#date-picker)
Expand Down Expand Up @@ -710,6 +711,17 @@ chart1.InitialChart(object1);
</Chip>
```

##Content
```razor
<Content>
<ContentHeader Id="myheader" HeaderTitle="My Content Page" />
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
</Content>
```

## Content Header

```razor
Expand Down
6 changes: 6 additions & 0 deletions SiemensIXBlazor/Components/Content/Content.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@namespace SiemensIXBlazor.Components
@inherits IXBaseComponent

<ix-content>
@ChildContent
</ix-content>
11 changes: 11 additions & 0 deletions SiemensIXBlazor/Components/Content/Content.razor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Components;

namespace SiemensIXBlazor.Components;

public partial class Content
{
[Parameter]
public RenderFragment? HeaderContent { get; set; }
[Parameter]
public RenderFragment? ChildContent { get; set; }
}
Loading