API

Variable DomManagementConst

DomManagement: {
    GetDOMTextContent: (element: HTMLElement) => string;
    IsDocumentAvailable: () => boolean;
    IsNavigatorAvailable: () => boolean;
    IsWindowObjectExist: () => boolean;
} = ...

Sets of helpers dealing with the DOM and some of the recurrent functions needed in Babylon.js

Type Declaration

  • GetDOMTextContent: (element: HTMLElement) => string

    Extracts text content from a DOM element hierarchy

    defines the root element

    a string

  • IsDocumentAvailable: () => boolean

    Check if the document object exists

    true if the document object exists

  • IsNavigatorAvailable: () => boolean

    Checks if the navigator object exists

    true if the navigator object exists

  • IsWindowObjectExist: () => boolean

    Checks if the window object exists

    true if the window object exists