Interface CustomContentInjectParams

interface CustomContentInjectParams {
    position: string;
    selector: string;
}

Properties

Properties

position: string

A string representing the position relative to the element. Must be one of the following strings:

  • "beforebegin": Before the element. Only valid if the element is in the DOM tree and has a parent element.
  • "afterbegin": Just inside the element, before its first child.
  • "beforeend": Just inside the element, after its last child.
  • "afterend": After the element. Only valid if the element is in the DOM tree and has a parent element.

See Element: insertAdjacentHTML() method for more details.

selector: string

The selector to use when looking for the place to insert adjacent HTML. This is scoped to the sheet where this content was registered.

'[data-tidy-field="name"]'