Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreatePageCreator

Hierarchy

  • CreatePageCreator

Index

Properties

_baseCreator

_baseCreator: BaseCreator

_errorService

_errorService: ErrorService

_h

_h: CreateElement

_routerService

_routerService: RouterService

_translatorService

_translatorService: TranslatorService

Methods

checkQuery

  • checkQuery(editable: {}): void

create

  • create(form: Component, modelFactory: Function, subject: string, createAction: Function, title: string, cssClasses: CreatePageCSSClasses): Component
  • Generate a create page

    Parameters

    • form: Component

      the form to create stuff with

    • modelFactory: Function

      the factory to create a new instance of a model

    • subject: string

      the subject for which to create something for

    • createAction: Function

      the action to send the newly created model to the backend

    • title: string
    • cssClasses: CreatePageCSSClasses

    Returns Component

createCreatePageTitle

  • createCreatePageTitle(subject: string): VNode

createForm

  • createForm(form: Component, editable: {}, action: (item: {}) => void): VNode
  • Parameters

    • form: Component
    • editable: {}
      • [x: string]: any
    • action: (item: {}) => void
        • (item: {}): void
        • Parameters

          • item: {}
            • [x: string]: any

          Returns void

    Returns VNode

Generated using TypeDoc