javascript - How do I pass hyperlinks into Carrot Search FoamTree? -
i using carrot search foamtree code add hyperlinks html page. here code:
<script> // initialize foamtree after whole page loads make sure // element has been laid out , has non-zero dimensions. window.addeventlistener("load", function() { var foamtree = new carrotsearchfoamtree({ // identifier of html element defined above id: "visualization", // data visualize. dataobject: { groups: [ { label: "alkaloid", weight: 1.0, trigger: true}, { label: "flavonoids", weight: 3.0 }, { label: "terpenoids", weight: 2.0 }, { label: "alkaloid", weight: 1.0 }, { label: "flavonoids", weight: 3.0 }, { label: "terpenoids", weight: 2.0 }, { label: "steroids", weight: 4.0 } ]}, }); }); </script>
i want produce hyperlinks alkaloids, flavonoids, terpenoids , steroids. how do that?
i have solved problem passing parameters dataobject, useful when foamtree drills down foamtree. same circles, example passing parentid , parentname sub objects when onclick event
fires have info need in event object passes object, contains group
, passing url
used in placed group
object.
Comments
Post a Comment