DiviArea.Data.addAltId()

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviArea.Data.addAltId()
DiviArea.Data.addAltId(id, altId)

Define an alternate ID for a registered Area.

An alternate ID can be used in all places that accept an Area ID, like the DiviArea.show() function. Internally, the plugin maps the alternate ID to the real Area ID.

Params

id
(string, required) The original Area ID; set to null to remove the altId again from the list of alternative IDs.
altId
(string, required) The alternate ID.

Returns

The function does not return anything.

Notes

No notes

Was this article helpful?

Related Articles