Editor

Editor defines a generic model for a CRUD web editor including the data model and aditional properties.

Namespace:
Inetdev.AspNetCore
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object

Constructors

Editor

Default constructor

Signature:
public Void Editor()

Editor

Initializes a new instance of Editor.

Signature:
public Void Editor(domainModel)
Parameters
Name Type Summary
domainModel T The domain model object to be edited.

Properties

Breadcrumb

List of items that conforms the breadcrumd.

Signature:
public BreadcrumbItemCollection Breadcrumb { get; set; }

Buttons

List of buttons for the view.

Signature:
public MvcButtonCollection Buttons { get; set; }

CancelAction

The cancel action.

Signature:
public MvcButton CancelAction { get; set; }

ContextCommands

List of commands for the context.

Signature:
public MvcButtonCollection ContextCommands { get; set; }

DomainModel

Gets or sets the domain model object.

Signature:
public T DomainModel { get; set; }

DropdownOptions

Gets or sets a list of named options for dropdown elements.

Signature:
public Dictionary DropdownOptions { get; set; }

Exception

Gets or sets an context related exception.

Signature:
public Exception Exception { get; set; }

Header

Localized header.

Signature:
public String Header { get; set; }

Parents

A list of parent object for this editor.

Signature:
public List<Object> Parents { get; set; }

PrimaryAction

The primary context action.

Signature:
public MvcButton PrimaryAction { get; set; }

SelectedID

Gets or sets the user currently selected model ID.

Signature:
public Object SelectedID { get; set; }

StatusMessage

Gets or sets the status message to show to the user.

Signature:
public StatusMessage StatusMessage { get; set; }