RAMP4 - v4.21.0
    Preparing search index...

    A class that represents a generic item in the legend.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _children: LegendItem[] = []
    _controls: LegendControl[] | undefined
    _disabledControls: LegendControl[] | undefined
    _exclusive: boolean
    _expanded: boolean
    _hidden: boolean
    _lastVisible?: LegendItem
    _loadPromise: DefPromise<void>
    _name: string
    _parent?: LegendItem = undefined
    _type: LegendType
    _uid: string
    _visibility: boolean
    _visibleChildren: LegendItem[]

    The instance of RampMap API scoped to a single Vue R4MP application.

    APIScope

    Accessors

    • get $element(): App<Element>

      Returns App<Element>

    • get $vApp(): ComponentPublicInstance

      The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

      Returns ComponentPublicInstance

      APIScope

    Methods

    • Check if a control is available for the legend item. Returns:

      • true if the control is included in legend item's available controls
      • false if control is not included, or if control is disabled
      • undefined if controls are not defined

      Parameters

      Returns boolean | undefined

    • Toggle expand state of a legend item.

      Parameters

      • Optionalexpanded: boolean

        set legend item to expanded/not expanded if given, otherwise toggle

      Returns void

    • Toggle hidden state of a legend item.

      Parameters

      • Optionalhidden: boolean

        set legend item to hidden/not hidden if given, otherwise toggle

      Returns void

    • Toggle visibility state of a legend item. Needs to verify parent visibility is updated.

      Parameters

      • Optionalvisible: boolean
      • updateParent: boolean = true

        whether or not toggleVisibiliity should 'bubble-up' the legend tree

      Returns void