Dojo Interviewfragen und Antworten
Question: Example of Tree in Dojo Framework.Answer:The tree is a GUI that helps to lists the hierarchical lists. The tree widget is a simple but the real power comes in the data. It represents the hierarchical structure of tree. Data is fed by the powerful dojo.dataAPI. There are following steps for creating Dojo trees :
<html> <title>Tree</title> <head> <style type="text/css"> @import "../resources/dojo.css"; @import "../dijit/themes/tundra/tundra.css"; </style> <script type="text/javascript" src="dojo.xd.js" djConfig="parseOnLoad: true"></script> <script> dojo.require("dojo.data.ItemFileReadStore"); dojo.require("dijit.Tree"); dojo.require("dojo.parser"); </script> </head> <body class="tundra"> Simple Tree:<br><br> <div dojoType="dojo.data.ItemFileReadStore" url="tree.txt" jsid="popStore" /> <div dojoType="dijit.Tree" store="popStore" labelAttr="sname" label="Tree"></div> </body> </html> tree.txt file contains: { label: 'name', identifier: 'name', items: [ { name:'Students', type:'cat', children: [ { name:'Vinod', type:'st' }, { name:'Suman', type:'st' }, { name:'Deepak', type:'st' } ]} |
Zum Wiederholen speichern
Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.
Melde dich an, um Lesezeichen, schwierige Fragen und Wiederholungssets zu speichern.
Am hilfreichsten laut Nutzern:
- What is Dojo?
- What is the basic structure in Dojo?
- Give a sample example on Dojo.
- What are Application Support Libraries in Dojo?
- What is Package System in Dojo?