/
NavigationLinkAspect
NavigationLinkAspect
Implemented by
AbsoluteNavigationLinkAspect
ClassNavigationLinkAspect
ObjectNavigationLinkAspect
For changes to NavigationLink creation see Release Notes Januar 2024 | Navigation Links
Class Breakdown
MetaValue.String
PropertiesAll properties with
MetaValue.String
can be passed as either aString
or as anIMetaExpression
.
EvaluateMetaValuePropertiesInContext(IMetaElement context)
Evaluates all
MetaValue.String
properties in the providedMetaElement
contextPropertyLinkBuilder
methods will automatically evaluate properties
PropertyLinkBuilder
SetAbsoluteNavigationLink
()SetClassNavigationLink
()SetObjectNavigationLink
()
// String URL
row.Add.Link(metadata.Person.AbsoluteLink, "public")
.SetAbsoluteNavigationLink("https://www.encodo.com");
// ExpressionText URL
row.Add.Link(metadata.Person.AbsoluteLink, "public")
.SetAbsoluteNavigationLink("[expression]If(Name == 'test', 'https://www.test.com', 'https://www.encodo.com')");
Manual Instantiation
// String
var aspect = new AbsoluteNavigationLinkAspect(){
URL = https://www.encodo.com"
};
// Expression
var url = parser.CreateExpression("If(Name == 'test', 'https://www.test.com', 'https://www.encodo.com')");
var aspect = new AbsoluteNavigationLinkAspect(){
URL = url
};
XML Layout
On XML layouts the same MetaValue.String
properties can accept a String or ExpressionText
<absoluteNavigationLinkAspect target="https://www.encodo.com"></absoluteNavigationLinkAspect>
<absoluteNavigationLinkAspect target="[expression]If(Name == 'test', 'https://www.test.com', 'https://www.encodo.com')"></absoluteNavigationLinkAspect>
Related content
Aspekte
Aspekte
More like this
Release Notes Januar 2024
Release Notes Januar 2024
Read with this
Daten Ansicht
Daten Ansicht
More like this
Expressions
Expressions
More like this
Menü Definition und Erweiterung
Menü Definition und Erweiterung
More like this