Function resolveTableDirection

  • Decides the direction of a table: "rtl" and "ltr" as given, "auto" from the computed direction of the host (inherited from <html dir="rtl"> or any parent) – for a host that is not in the document yet from the nearest dir attribute of the host or a parent. Missing (undefined) = "ltr".

    Must be called before the table sets the dir attribute of the host.

    Parameters

    Returns ResolvedTableDirection

    "ltr" or "rtl"

    Example

    resolveTableDirection("auto", document.getElementById("table")!); // "rtl" on a page with <html dir="rtl">
    

    Since

    1.1.98