how to use introjs (or any external ) library in list view ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zuzz
    Member
    • Nov 2023
    • 42

    how to use introjs (or any external ) library in list view ?

    Please, how to use introjs library in list view ?

    introjs: https://introjs.com/
    I've tried :

    1) Espo.loader.requirePromise('custom:intro').then
    2) jsLibs.json
    3) "scriptList": [
    "__APPEND__" in Custom/Resources/metadata/app/client.json

    with no success
    library loaded, by introJs() states undefined
    Last edited by Zuzz; 01-19-2024, 01:50 PM.
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1638

    #2
    Perhaps this helps. I have never tested.
    Hello, I would like to know generally, how would be the approach to integrate external libraries in espoCRM. What will I have to put where to get it possibly update safe?
    Last edited by shalmaxb; 01-19-2024, 03:08 PM.

    Comment

    • Zuzz
      Member
      • Nov 2023
      • 42

      #3
      Thanks for reply.
      it's p.3. in my list.
      But introJs() states undefined

      What is the correct way to use integrated library ?

      Comment

      • Zuzz
        Member
        • Nov 2023
        • 42

        #4
        It seems I find the solution:

        Espo.loader.requirePromise('custom:scripts/intro').then((introJS) => {
        let in2 = new introJS();​

        Comment

        • shalmaxb
          Senior Member
          • Mar 2015
          • 1638

          #5
          When you find a solution, please post it here explained, if possible.

          Comment

          • Zuzz
            Member
            • Nov 2023
            • 42

            #6
            1. Copy intro.js to /client/custom/src/scripts/intro.js
            2. in custom list view,
            afterRender:{
            ....
            Espo.loader.requirePromise('custom:scripts/intro').then((introJS) => {
            let in2 = new introJS();
            .....
            }​

            Comment

            Working...