Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


    • #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


      • #4
        It seems I find the solution:

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

        Comment


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

          Comment


          • #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...
            X