Show:

Places countries Class

Displays a way to select one or more countries

Constructor

Places countries

(
  • [options]
  • [options.onChange=new
)

Parameters:

  • [options] Object optional

    used to pass options

    • [flags="Q/plugins/Places/img/squareflags"] String optional

      the path for the flags, or set to false to omit the flag

    • [countryCode='US'] String optional

      the initial country to select in the list

    • [firstCountryCodes='US','GB'] Array optional

      array of country codes to place first in the list

    • [sort] Boolean optional

      if true, sorts the countries alphabetically

    • [globe] Q.Tool optional

      a reference to a "Places/globe" tool to synchronize

    • [onReady] Q.Event optional

      this event occurs when the countries selector is ready

  • [options.onChange=new Q.Event

    Q.Event()] Occurs when the value has changed

Item Index

Methods

Methods

globe

(
  • globeTool
)

Parameters:

  • globeTool Q.Tool | False

    A reference to a "Places/globe" tool, or false to unlink

refresh

()

Refreshes the list of countries, to reflect any updates