Create a new legend item with defaulting for all properties given config snippet, id is required.
instance API for the RAMP that this is associated with
the config for the given legend item
Optionalparent: LegendItema legend item that this item is a child of
Optional_Optional_Readonly$iThe instance of RampMap API scoped to a single Vue R4MP application.
Returns children of the legend item
Sets new children for the legend item
new child legend items
Returns if item follows "exclusive set" behaviour
Returns if item is expanded
Returns if item is hidden
Returns the load promise for this legend item
Returns the item's name
Sets the item's name
new item name
Returns item's parent - not yet initialized
Returns the item's type
Returns the item's uid
Returns if item has visibility
Updates parent visibility after a child item's visibility toggles.
given child legend item
Ensures visibility rules are followed if legend item is nested in another item on initialization.
Check if a control is available for the legend item. Returns:
name of the control
Sets legend item to an error state
Returns a legend config representation of this item.
Sets legend item to a loaded state.
Runs right after legend item is added
Runs right before legend item is removed
Sets legend item back to a loading/placeholder state
Enable a disabled control, or disable an enabled control.
name of the control
true for enabling, false for disabling
Toggle expand state of a legend item.
Optionalexpanded: booleanset legend item to expanded/not expanded if given, otherwise toggle
Toggle hidden state of a legend item.
Optionalhidden: booleanset legend item to hidden/not hidden if given, otherwise toggle
Toggle visibility state of a legend item. Needs to verify parent visibility is updated.
Optionalvisible: booleanwhether or not toggleVisibiliity should 'bubble-up' the legend tree
A class that represents a generic item in the legend.