Member Junction
    Preparing search index...

    Base class for all Angular components in the MemberJunction system.

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnDestroy
    • AfterViewInit
    Index

    Constructors

    Properties

    AfterDataLoad: EventEmitter<AfterDataLoadEventArgs> = ...
    AfterDropdownClose: EventEmitter<AfterDropdownCloseEventArgs> = ...
    AfterDropdownOpen: EventEmitter<AfterDropdownOpenEventArgs> = ...
    AfterNodeSelect: EventEmitter<AfterNodeSelectEventArgs> = ...
    AfterSearch: EventEmitter<AfterSearchEventArgs> = ...
    AutoLoad: boolean = true

    Auto-load data on init

    BeforeDataLoad: EventEmitter<BeforeDataLoadEventArgs> = ...
    BeforeDropdownClose: EventEmitter<BeforeDropdownCloseEventArgs> = ...
    BeforeDropdownOpen: EventEmitter<BeforeDropdownOpenEventArgs> = ...
    BeforeNodeSelect: EventEmitter<BeforeNodeSelectEventArgs> = ...
    BeforeSearch: EventEmitter<BeforeSearchEventArgs> = ...
    BranchConfig: TreeBranchConfig

    Branch (category) entity configuration - REQUIRED

    Clearable: boolean = true

    Show clear button

    DefaultExpansion: "none" | "first-level" | "all" = 'first-level'

    Initial expansion for the inner tree when it first loads (see TreeComponent.DefaultExpansion).

    Disabled: boolean = false

    Disabled state

    DropdownConfig: TreeDropdownConfig = {}

    Dropdown configuration

    dropdownPanel: ElementRef<HTMLElement>
    EnableSearch: boolean = true

    Enable search filtering

    IsLoaded: boolean = false

    Has data loaded

    IsLoading: boolean = false

    Is tree loading

    IsOpen: boolean = false

    Is dropdown open

    LeafConfig?: TreeLeafConfig

    Optional leaf entity configuration

    Placeholder: string = 'Select...'

    Placeholder text when nothing selected

    Position: DropdownPosition | null = null

    Dropdown position

    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    SearchConfig: TreeSearchConfig = {}

    Search configuration

    searchInput: ElementRef<HTMLInputElement>
    SearchText: string = ''

    Search text

    SelectableTypes: TreeSelectableTypes = 'both'

    What types can be selected: 'branch', 'leaf', or 'both'

    SelectedNodes: TreeNode[] = []

    Selected nodes (for display)

    SelectionChange: EventEmitter<TreeNode | TreeNode[] | null> = ...

    Emitted with full node(s) when selection changes

    SelectionMode: TreeSelectionMode = 'single'

    Selection mode: 'single' or 'multiple'

    ShowIconInDisplay: boolean = true

    Show node icons in display

    ShowLoadingInTrigger: boolean = true

    Show loading in trigger

    StyleConfig: TreeStyleConfig = {}

    Style configuration

    treeComponent: TreeComponent
    triggerElement: ElementRef<HTMLElement>
    ValueChange: EventEmitter<CompositeKey | CompositeKey[] | null> = ...

    Emitted when value changes

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.

      Returns void

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void

    • Handle search keydown — provides full keyboard navigation while search input retains focus. The tree's own keyboard handler doesn't fire because the search input has DOM focus, so all navigation is handled here by manipulating the tree's FocusedNode visual state.

      Parameters

      • event: KeyboardEvent

      Returns void

    • Returns a promise that resolves when the tree data has finished loading. If data is already loaded, the promise resolves immediately.

      Use this method when you need to perform operations that depend on the tree being fully loaded, such as programmatically selecting nodes or accessing the tree structure.

      Note: For setting initial values, you typically don't need this method - just set the Value input and the component will automatically display the correct text by looking up the record name via Metadata.

      Returns Promise<void>

      A promise that resolves when the tree data is loaded

      // Wait for tree to load before accessing tree structure
      await treeDropdown.WaitForDataLoad();
      const nodes = treeDropdown.treeComponent.Nodes;