File tree Expand file tree Collapse file tree
Blazor-MAUI-Demos/Pages/Diagram/Diagram Expand file tree Collapse file tree Original file line number Diff line number Diff line change 313313 <Layout @bind-Type =" Type" @bind-HorizontalSpacing =" @HorizontalSpacing" @bind-VerticalSpacing =" @VerticalSpacing" >
314314 </Layout >
315315 <SnapSettings Constraints =" @SnapConstraints.None" ></SnapSettings >
316-
316+ <DiagramTemplates >
317+ <TooltipTemplate >
318+ @{
319+ if (context is Node node )
320+ {
321+ var data = (node as Node ).Data as RadialTreeDetails ;
322+ if (data != null )
323+ {
324+
325+ < div >
326+ @data .Name < br / > @data .Designation
327+ < / div >
328+ }
329+ }
330+ }
331+ </TooltipTemplate >
332+ </DiagramTemplates >
317333 </SfDiagramComponent >
318334 </div >
319335 @* Hidden:Lines*@
487503 node .Constraints = NodeConstraints .Default | NodeConstraints .Tooltip ;
488504 node .Tooltip = new DiagramTooltip ()
489505 {
490- Template = radialData .Name + " <br />" + radialData .Designation ,
491506 Position = Position .TopCenter ,
492507 };
493508 }
You can’t perform that action at this time.
0 commit comments