View Class

Hierarchy

  • View

Implements

  • AbstractView

Constructors

Properties

attributes?: any
configuration?: any
default_render_page?: string
description?: string
exttable_name?: string
id?: number
min_role: number
name: string
singleton?: boolean
slug?: any
table?: AbstractTable
table_id?: number
table_name?: string
viewtemplate: string
viewtemplateObj?: ViewTemplate

Accessors

Methods

  • Parameters

    • arg: {
          query: any;
          req: any;
          table_id: number;
      }
      • query: any
      • req: any
      • table_id: number
    • remote: boolean = false

    Returns Promise<boolean>

  • authorise_post(arg, remote?): Promise<boolean>
  • Parameters

    • arg: {
          body: any;
          req: any;
          table_id: number;
      }
      • body: any
      • req: any
      • table_id: number
    • remote: boolean = false

    Returns Promise<boolean>

  • Returns Promise<ConnectedObjects>

  • Parameters

    • title: string
    • query: any

    Returns Promise<string>

  • saltcorn-mobile-app helper. Check if the table of a view is local or server-side

    Returns boolean

    true if server-side table

  • Parameters

    • id: undefined | number
    • fieldName: string
    • fieldView: string
    • user: any
    • targetOpts: any

    Returns Promise<any>

  • Parameters

    • Optional remote: boolean
    • Optional req: any
    • Optional res: any

    Returns any

  • Run (Execute) View

    Parameters

    • query: any
    • extraArgs: RunExtra
    • remote: boolean = !isNode()

    Returns Promise<any>

  • Run many views with content filtered by query. Used in Search for example

    Parameters

    • query: GenObj

      this is query string

    • extraArgs: RunExtra
    • Optional remote: boolean

    Returns Promise<string[] | {
        html: string;
        row: any;
    }[]>

    Throws

  • Parameters

    • query: GenObj
    • body: GenObj
    • extraArgs: RunExtra
    • remote: boolean = !isNode()

    Returns Promise<any>

  • Parameters

    • route: string
    • body: any
    • res: any
    • extraArgs: RunExtra
    • remote: boolean = false

    Returns Promise<any>

  • Parameters

    • query: any
    • req: any
    • res: any
    • remote: boolean = false

    Returns Promise<string | {
        goto?: string;
    }>

  • Update View description

    Parameters

    • v: any

      view name

    • id: number

      id

    Returns Promise<void>

Generated using TypeDoc