Class TrinityPage
The base page class for Trinity framework.
public abstract class TrinityPage : CanMakeComponent
- Inheritance
-
TrinityPage
- Derived
- Inherited Members
Properties
CanView
Gets a value indicating whether the page can be viewed by the user.
public virtual bool CanView { get; }
Property Value
Icon
The navigation icon to use for the page.
public virtual string? Icon { get; protected init; }
Property Value
Label
The label for the page.
public virtual string? Label { get; protected init; }
Property Value
PageView
The name of the view to use for rendering the page.
public virtual string PageView { get; }
Property Value
Schema
The schema for the page.
public List<object> Schema { get; }
Property Value
Slug
The page slug.
public abstract string Slug { get; }
Property Value
Methods
GetData()
Gets the data for the page.
public virtual object? GetData()
Returns
- object
The data for the page.
GetSchema()
Gets the schema for the page.
protected virtual List<ITrinityWidget> GetSchema()
Returns
- List<ITrinityWidget>
The schema for the page.
Setup()
Setup is being called on each request, once the Page is resolved from the The IServiceProvider. Can be used to resolve extra Services or do some logic before using the Resource.
public virtual Task Setup()