Trilium Backend API
    Preparing search index...
    • Get the value of a style property for the first element in the set of matched elements.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • Optionalnames: string[]

        Optionally the names of the properties of interest.

      Returns Record<string, string>

      A map of all of the style properties.

    • Get the value of a style property for the first element in the set of matched elements.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • name: string

        The name of the property.

      Returns string

      The property value for the given name.

    • Set one CSS property for every matched element.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • prop: string

        The name of the property.

      • val: string | ((this: Element, i: number, style: string) => string)

        The new value.

      Returns Cheerio<T>

      The instance itself.

    • Set multiple CSS properties for every matched element.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • map: Record<string, string>

        A map of property names and values.

      Returns Cheerio<T>

      The instance itself.