Namespace: inlineEditTax

inlineEditTax

Consists of functions relevant to the inline taxonomy editor.
Properties:
Name Type Description
type string The type of inline edit we are currently on.
what string The type property with a hash prefixed and a dash suffixed.
Source:

Methods


<static> edit(id)

Shows the quick editor
This:
Parameters:
Name Type Description
id string | HTMLElement The ID of the term we want to quick edit or an element within the table row or the table row itself.
Since:
  • 2.7.0
Source:
Returns:
Always returns false.
Type
boolean

<static> getId(o)

Retrieves the ID of the term of the element inside the table row.
Parameters:
Name Type Description
o HTMLElement An element within the table row or the table row itself.
Since:
  • 2.7.0
Source:
Returns:
The ID of the term based on the element.
Type
string

<static> init()

Initializes the inline taxonomy editor by adding event handlers to be able to quick edit.
This:
Since:
  • 2.7.0
Source:
Returns:
Type
void

<static> revert()

Closes the quick edit form.
This:
Since:
  • 2.7.0
Source:
Returns:
Type
void

<static> save(id)

Saves the quick edit data. Saves the quick edit data to the server and replaces the table row with the HTML retrieved from the server.
This:
Parameters:
Name Type Description
id string | HTMLElement The ID of the term we want to quick edit or an element within the table row or the table row itself.
Since:
  • 2.7.0
Source:
Returns:
Always returns false.
Type
boolean

<static> toggle(el)

Toggles the quick edit based on if it is currently shown or hidden.
This:
Parameters:
Name Type Description
el HTMLElement An element within the table row or the table row itself that we want to quick edit.
Since:
  • 2.7.0
Source:
Returns:
Type
void