Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · Flags a page registers itself

customGroupsfunction

The groups of the flags registered and on, in the order each first appears, with the ids in each: for a picker that shows custom flags beside the built-in ones.

Import it

import { customGroups } from "@johnmorrisdotca/hata/custom";

Definition

function customGroups(): { group: string; ids: string[]; }[]

Returns

{ group: string; ids: string[]; }[]

[{ group, ids }]: empty when nothing is registered.

Examples

import { customGroups } from "@johnmorrisdotca/hata/custom";

for (const { group, ids } of customGroups()) console.log(group, ids.length);

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.