Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericView

A generic View Control, works based on a single Content, renders FieldControls based on the AureliaControlMapper and the provided Schema. Also responsible to aggregating validation data

Usage:

 <generic-view content.bind='contentInstance' schema.bind='contentSchema'></generic-view>

Hierarchy

  • GenericView

Index

Constructors

constructor

Properties

Optional actionName

actionName: ActionName

The optional ActionName

content

content: IContent

The bindable Content instance

Private controlMappingService

controlMappingService: ControlMappingService

Private controlNameResolverService

controlNameResolverService: ControlNameResolverService

originalContent

originalContent: IContent

The Original content for change tracking

Private repository

repository: Repository

schema

schema: ControlSchema<any, FieldSetting>

the bindable ControlSchema object

Methods

actionNameChanged

  • actionNameChanged(newName: ActionName, oldName: ActionName): void

activate

  • activate(model: object): Promise<void>
  • a general activation method, that can be used with composition

    Parameters

    • model: object

      The model to be provided to activate the Control

      • actionName: ActionName
      • content: IContent
      • schema: ControlSchema<any, FieldSetting>

    Returns Promise<void>

Private parseSchema

  • parseSchema(): void

Generated using TypeDoc