Table of Contents

Class TrinityPage

Namespace
AbanoubNassem.Trinity.Pages
Assembly
AbanoubNassem.Trinity.dll

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

bool

Icon

The navigation icon to use for the page.

public virtual string? Icon { get; protected init; }

Property Value

string

Label

The label for the page.

public virtual string? Label { get; protected init; }

Property Value

string

PageView

The name of the view to use for rendering the page.

public virtual string PageView { get; }

Property Value

string

Schema

The schema for the page.

public List<object> Schema { get; }

Property Value

List<object>

Slug

The page slug.

public abstract string Slug { get; }

Property Value

string

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()

Returns

Task