Wagtail client-side components
    Preparing search index...

    Function getContentPathSelector

    • Compose a selector string to find the content element based on the dotted content path.

      Parameters

      • contentPath: string

        dotted path to the content element.

      Returns string

      a selector string to find the content element.

      getContentPathSelector('abc1.d2e.3f')
      // returns '[data-contentpath="abc1"] [data-contentpath="d2e"] [data-contentpath="3f"]'