Class ViewSerializedParamExtensions
Inheritance
ViewSerializedParamExtensions
Assembly: LemonEdge.ClientCore.dll
Syntax
public static class ViewSerializedParamExtensions
Methods
GetItemFromIDWithNameFallback<T>(ViewSerializedParam, Guid, string, IReadOnlyCache)
Not perfect. View serialized parameters have to store their attribues using ids, and names.
This way a layout can be exported from one system o another and still work as long as the same queries/etc for the layout exist.
Ideally the viewdescriptor and serialized classed should be in the api core. Then a layout import can deserialize the layout and update the ids during the import.
But for now we have to just deal with it during runtime in the view descriptor
Declaration
public static Task<T> GetItemFromIDWithNameFallback<T>(this ViewSerializedParam viewParam, Guid id, string name, IReadOnlyCache cache = null) where T : IBaseEntity
Parameters
Returns
Type Parameters
IsVisible(ViewSerializedParam)
Returns if this view is currently visible by ensuring it passes the Visible, VisibleOnlyToRoles and VisibleFormula (from the last EvaluateVisibilityFormula(DisplayableItemDescriptor, IModelLayoutDisplayerController, IModelView, IBaseEntity) call)
Declaration
public static bool IsVisible(this ViewSerializedParam viewParam)
Parameters
Returns