@geogirafe/lib-geoportal
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    activeTooltips: any[] = []
    callbacks: Callback[] = []
    componentManager: ComponentManager
    configManager: ConfigManager
    displayStyle?: string
    name: string
    rendered: boolean = false
    shadow: ShadowRoot
    stateManager: StateManager
    styleUrl: null | string = null
    template: Hole | (() => Hole)
    templateUrl: null | string = null
    timeoutId?: Timeout
    userInteractionManager: UserInteractionManager

    Accessors

    Methods

    • Parameters

      • arrow: boolean
      • delay: [number, number]
      • defaultPlacement: string

      Returns void

    • Deserialize an element and set the current element state to the deserialized one

      Parameters

      • _serializedElement: unknown

        The element serialization as returned by the serialize method

      Returns void

    • When the component is disconnected from the DOM all the callbacks will be unregistered

      Returns void

    • Parameters

      • parentNodeName: string
      • elem: null | Node
      • initialElem: null | Node = elem

      Returns null | Node

    • Convert the string in parameter with uHtml and return it. This allows to convert a string with html in a right html object. For example, htmlUnsafe('

      ') will return an html div object.

      Parameters

      • str: string

      Returns Hole

    • NOTE REG: We cannot just use truthy here, because javascript comparaison table is really problematic. For example: 0 == false [] == false "" == false And there are cases where we want to check null or undefined, because 0 can be a right value. More here : https://dorey.github.io/JavaScript-Equality-Table/

      Parameters

      • val: unknown

      Returns boolean

    • Re-Render the component. The method should be called when the component has already been rendered and needs to be updated.

      Returns void

    • Renders a hidden span with the name of the component. Useful to render a placeholder for not visible component.

      Returns void

    • Returns the serialization of the current element. This method should be overwritten by child classes

      Returns {}

      An object describing the current element serialized

    • In the templates, sometimes for accessibility reasons, we have to support the KeyDown Event In those case, we often juste want to do the same as the click event when Enter or Space is pressed Then this method can be used : it just calls the click event on the same element

      Parameters

      • e: KeyboardEvent

      Returns void