Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Dojo ColorPalette

In this section, you will learn about dojo ColorPalette.

Ads

Dojo ColorPalette

       

In this section, you will learn about dojo ColorPalette.

ColorPalette: The ColorPalette is a color picker to the web pages. ColorPalette provides you a lot of colors, user can choose color to your requirement. This is an abstraction of hexa colors code that is provided by dijit.

Try Online: ColorPalette

Here is the code of Example:

<html>
<head>

<title>ColorPalette Demo</title>

 <style type="text/css">
  @import "../dijit/themes/soria/soria.css";
  @import "/resources/dojo.css";
  </style>

  <script type="text/javascript" src="dojo.xd.js" djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">
  dojo.require("dojo.parser");
  dojo.require("dijit.ColorPalette");

  function myColorPalette(selectColor) {
  console.debug(selectColor);
 }
 </script>

</head>
<body class="soria">

  <div dojoType="dijit.ColorPalette" onChange="myColorPalette"></div>

</body>
</html>

Output:

Try Online:

Advertisements

Ads
Share on Google+Share on Google+

Dojo ColorPalette

Posted on: November 1, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Dojo ColorPalette  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads