B4J Question [ABMaterial]: [SOLVED] Request help Wrapping a Flow Custom Component

Mashiane

Expert
Licensed User
Longtime User
Hi there

I kindly request some help. I need this flow display script to run.

I have found the css and js here, and tried to no avail. It just never displays anything on my page..

https://github.com/DavidBanksNZ/simple-diagram-js

This is what is supposed to display...

example1.png


I have attached my code below. Any help will be greatly appreciated, perhaps I'm missing something

In my BuildPage I have

B4X:
page.AddExtraJavaScriptFile("custom/d3.min.js")
    page.AddExtraCSSFile("custom/SimpleDiagram-0.2.css")
    page.AddExtraJavaScriptFile("custom/SimpleDiagram-0.2.min.js")

Ta!
 

Attachments

  • MashSimpleDiagram.bas
    2.7 KB · Views: 194
  • d3.zip
    245.7 KB · Views: 208
  • simple-diagram-js-master.zip
    53.9 KB · Views: 170

Mashiane

Expert
Licensed User
Longtime User
a couple of things I found:

1. probably wrong version of d3 (got a step further when I used the cloudfare link)
2. True <> true in javascript so your ${addGrid} variables can't work
3. interactive fails
4. their own html demo 2 failed

At that point I stopped looking. This component is very flawed.
Eish, thanks a lot for the attempt, appreciate it.
 
Upvote 0
Top