Example on Color Picker in Dojo framework?
Submitted by: AdministratorThe dojox.widget.ColorPicker widget that allows user to select a color (in hexa format). This is a form component. We can add this component on the form to our requirement.
<html>
<head>
<title>Color Picker Example</title>
<style type="text/css">
@import "../dijit/themes/soria/soria.css";
@import "/resources/dojo.css";
@import "../dojox/widget/ColorPicker/ColorPicker.css";
</style>
<script type="text/javascript" src="dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require("dojox.widget.ColorPicker");
dojo.require("dojo.parser");
</script>
</head>
<body class="soria">
<b>Please select the color:</b>
<div id="colorPicker" dojoType="dojox.widget.ColorPicker"></div>
</body>
</html>
Submitted by: Administrator
<html>
<head>
<title>Color Picker Example</title>
<style type="text/css">
@import "../dijit/themes/soria/soria.css";
@import "/resources/dojo.css";
@import "../dojox/widget/ColorPicker/ColorPicker.css";
</style>
<script type="text/javascript" src="dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require("dojox.widget.ColorPicker");
dojo.require("dojo.parser");
</script>
</head>
<body class="soria">
<b>Please select the color:</b>
<div id="colorPicker" dojoType="dojox.widget.ColorPicker"></div>
</body>
</html>
Submitted by: Administrator
Read Online Dojo Job Interview Questions And Answers
Top Dojo Questions
| ☺ | What is the difference between dojox, mobile, parser and dojo.parser? |
| ☺ | Relation between AJAX and Dojo? |
| ☺ | Explain dojo/ready module functions? |
| ☺ | Explain Event System in Dojo? |
| ☺ | Explain about Environment-Specific Libraries in Dojo? |
Top Scripting language Categories
| ☺ | AngularJS Interview Questions. |
| ☺ | Ext-JS Interview Questions. |
| ☺ | Dojo Interview Questions. |
| ☺ | Expert Developer JavaScript Interview Questions. |
| ☺ | jQuery Mobile Interview Questions. |
