Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

id: string
structureTypeName: string
structureTypeName: string = "Pages$Snippet"
versionInfo: StructureVersionInfo = ...

Accessors

  • get canvasHeight(): number
  • set canvasHeight(newValue: number): void
  • Returns number

  • Parameters

    • newValue: number

    Returns void

  • get canvasWidth(): number
  • set canvasWidth(newValue: number): void
  • Returns number

  • Parameters

    • newValue: number

    Returns void

  • get container(): TContainer
  • The parent unit of this unit.

    Returns TContainer

  • get containerAsModule(): Module
  • get documentation(): string
  • set documentation(newValue: string): void
  • In version 9.10.0: added public

    Returns string

  • In version 9.10.0: added public

    Parameters

    • newValue: string

    Returns void

  • get entity(): null | IEntity
  • set entity(newValue: null | IEntity): void
  • get entityQualifiedName(): null | string
  • get excluded(): boolean
  • set excluded(newValue: boolean): void
  • In version 9.11.0: added public

    Returns boolean

  • In version 9.11.0: added public

    Parameters

    • newValue: boolean

    Returns void

  • In version 9.3.0: introduced

    Returns ExportLevel

  • In version 9.3.0: introduced

    Parameters

    Returns void

  • get isLoadable(): boolean
  • Whether this unit and all of its children (recursively) can be loaded.

    Returns boolean

  • get isLoaded(): boolean
  • Whether this unit has been completely loaded and does not consist of the unit's interface (which corresponds to the unit being partial).

    Returns boolean

  • get isReadOnly(): boolean
  • Whether this unit and all of its children (recursively) are editable.

    Returns boolean

  • get model(): TModel
  • Returns TModel

  • get name(): string
  • set name(newValue: string): void
  • Returns string

  • Parameters

    • newValue: string

    Returns void

  • get qualifiedName(): null | string
  • Returns the qualified name of this element, or null if this element is not a part of the model, or if it or one of its namespace containers does not have a valid name.

    Returns null | string

  • In version 8.4.0: added public In version 8.0.0: introduced

    Returns SnippetType

  • In version 8.4.0: added public In version 8.0.0: introduced

    Parameters

    Returns void

  • get unit(): this
  • Unit that owns/contains this thing.

    Returns this

  • In version 7.15.0: deleted

    Returns null | pages.Widget

  • In version 7.15.0: deleted

    Parameters

    Returns void

Methods

  • Transforms a IElement interface into a Element class, loading the containing unit if necessary. (Those are technically already the same, but this function makes sure its properties are available.)

    • If invoked without callback, it checks whether the properties are available or it will throw;
    • If invoked with callback, it will load the data from the server if needed, and then invoke the callback.

    Returns Snippet

  • delete(): void
  • getContainerAs<T>(containerType: any): T
  • load(callback: (elem: Snippet) => void, forceRefresh?: boolean): void
  • load(forceRefresh?: boolean): Promise<Snippet>
  • Transforms a IElement interface into a Element class, loading the containing unit if necessary. (Those are technically already the same, but this function makes sure its properties are available.)

    • If invoked without callback, it checks whether the properties are available or it will throw;
    • If invoked with callback, it will load the data from the server if needed, and then invoke the callback.

    Parameters

    • callback: (elem: Snippet) => void
    • Optional forceRefresh: boolean

    Returns void

  • Parameters

    • Optional forceRefresh: boolean

    Returns Promise<Snippet>

  • Renders the structure as plain JSON (without observables magic). This is intended for debugging and development convenience. Note that the resulting object is not of the interface type corresponding to this structure.

    Returns IAbstractElementJson

  • traverse(visit: (structure: IStructure) => void): void
  • Traverses this structure by calling the provided visitor function on itself and all the structures contained (as part) by it, in depth-first order, and it returns synchronously after that.

    Parameters

    Returns void

  • traverseFind<T>(visit: (structure: IStructure) => T): null | T
  • traversePublicParts(visit: (structure: IStructure) => void): void
  • Creates a new Snippet unit in the SDK and on the server. Expects one argument, the projects.IFolderBase in which this unit is contained.

    Parameters

    Returns Snippet

Generated using TypeDoc