Comments (6)
Could be a nice option to add some parameter like DisplayTemplate
(of type RenderFragment?) with wich you can define what is shown in front of the image.
Seems like somthing that could be done with a community contribution. Any takers?
from fluentui-blazor.
You can do that using a code like this:
<FluentStack VerticalAlignment="VerticalAlignment.Center">
<div>
<FluentLabel Style="font-size: 11px; line-height: 14px;">Denis Voituron</FluentLabel>
<FluentLabel Style="font-size: 11px; line-height: 14px;">Microsoft</FluentLabel>
</div>
<FluentProfileMenu Image="@DataSource.ImageFaces[3]"
Status="@PresenceStatus.Available"
TopCorner="true"
Initials="OS"
FullName="Olivia Smith"
EMail="[email protected]"
Style="min-width: 330px;">
<HeaderTemplate><FluentLabel Typo="Typography.Body">My Company Corp</FluentLabel></HeaderTemplate>
<FooterTemplate></FooterTemplate>
</FluentProfileMenu>
</FluentStack>
from fluentui-blazor.
@dvoituron agreed that is an option. What i was looking for was to wrap the "Denis" text into the clickable area. So the user could click on the Profile head or the text (similar to azure admin ui)
But your code is very applicable/a very viable option
from fluentui-blazor.
besides the DisplayTemplate
parameter, there could be an option to select the content's position. This would allow content to be rendered left or right of the image, maybe at the top or bottom, too.
from fluentui-blazor.
See #2010
from fluentui-blazor.
Fixed with PR mentioned above
from fluentui-blazor.
Related Issues (20)
- docs: fix/add Toast / Custom component example / Razor code HOT 2
- Add CultureInfo.InvariantCulture to ToString("0.00") HOT 1
- fix: clicking ColumnOptions in FluentDataGrid throws exception HOT 2
- docs: Make Aside (In this article) scrollable HOT 1
- docs: add documentation on how to provide more parameters to custom dialogs HOT 5
- feat: add OnKeyUp in FluentKeyCode HOT 1
- docs: add some guidance to configure RTL mode HOT 3
- feat: add multi-column to/in combobox HOT 2
- feat: add [required] to [Label] HOT 3
- Maximum call stack size exceeded when using FluentDesignSystemProvider and a FluentCard HOT 2
- feat: [DataGrid] Deselect all other items when row is clicked (not checkbox) HOT 4
- FluentCheckbox issue HOT 1
- Tree component HOT 2
- Fluent Blazor Web App bogus focus on first body element HOT 4
- fix: Circular constraint dependency involving 'Icon' and 'Icon' in FluentIcon HOT 2
- fix: Interactive Search - NoMatch exception
- fix: expanding & collapsing in FluentNavMenu HOT 2
- fix: navigation does not expand when navigating through the page by bookmark or link HOT 1
- Weather sample page regenerates data on sort HOT 1
- fix: FluentValidationMessage won't show message for an empty FluentTextArea component. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui-blazor.