Results 1 to 4 of 4

Thread: Using dojo color picker

  1. #1
    Join Date
    May 2008
    Posts
    29

    Using dojo color picker

    hi,

    I want to know about the dojo color picker tool. Has anyone used it in your CForm? I have seen it but really don't have the proper way to use it.
    Please give some information about the tool & how to use it?


    Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    33

    Re: Using dojo color picker

    I think you need to go through this article for the dojo color picker toolkit.
    here its explained in detail & I hope this helps you with your doubts.
    http://www.dojotoolkit.org/forum/doj...et-colorpicker

  3. #3
    Join Date
    May 2008
    Posts
    24

    Re: Using dojo color picker

    Java Sources

    Code:
    package wicket.contrib.dojo.examples;
    
    import wicket.PageParameters;
    import wicket.contrib.dojo.markup.html.form.DojoColorPicker;
    import wicket.markup.html.WebPage;
    import wicket.markup.html.form.Form;
    import wicket.model.Model;
    
    public class ColorPickerShower extends WebPage {
    
        private String color;
    
        public ColorPickerShower(PageParameters parameters){
    
            color = "FF4554";
    
            Form form = new Form("form");
    
            DojoColorPicker colorPicker = new DojoColorPicker("colorPicker", new Model(color));
            form.add(colorPicker);
    
            this.add(form);
    
        }
    }
    DojoColorPicker as all others picker (DojoTimePicker and DojoDatePicker) accept toggle via setToggle method

    Html Sources

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <title>Untitled Document</title>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <style type="text/css">
            </style>
        </head>
    
    <body>
         <form wicket:id="form">
                <input wicket:id="colorPicker" type="text"></input>
    
            <input value="Submit" name="Submit" type="submit" />
        </form>
    </body>
    </html>

  4. #4
    Join Date
    May 2008
    Posts
    21

    Re: Using dojo color picker

    Dojo Color Picker

    ColorPicker: The dojox.widget.ColorPicker widget that allows user to select a color
    (in hexa format). This is a form component

    code:

    Code:
    <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>

Similar Threads

  1. How can I use simple URL picker in SharePoint 2010
    By Pinku.D in forum Windows Software
    Replies: 3
    Last Post: 18-05-2012, 11:12 PM
  2. Replies: 5
    Last Post: 16-02-2012, 09:11 AM
  3. Ninja Kaka - Fruit Dojo: A android game
    By Rawana in forum Video Games
    Replies: 4
    Last Post: 22-02-2011, 10:48 AM
  4. Is color picker available for Blackberry
    By Philibert in forum Portable Devices
    Replies: 3
    Last Post: 19-02-2011, 12:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,580,018.27431 seconds with 17 queries