English 中文(简体)
日期:
原标题:highlight date on calendar popup appearing on DateTextBox
  • 时间:2012-01-12 20:06:21
  •  标签:
  • dojo

Is there any way to highlight a specific date on a calendar popup (not multilselect or ordinary dojo calendar component but calendar on DateTextBox ) displayed when a user clicks on the dijit.form.DateTextBox??

问题回答

是的。 http://livedocs.dojotoolkit.org/dijit/form/DateTextBox#standard-date-format”rel=“nofollow”

Example :

require([ dijit/form/DateTextBox ], function(DateTextBox) {
    var dtb = new DateTextBox({value: 2012-01-13 }, "dtb")
});

我试图做一些类似的事情,并发现有以下帮助。 或许也可以帮助你。

为了在日期TextBox popup日历上打上具体日期,你必须使用人种,并且根据dijit/Calendar设定一个风俗习惯。

第一次宣布为“ do”类,然后确定“TextBox”号:

var MyCalendar = declare("custom/widgets/MyCalendar", Calendar, {
    getClassForDate: function(date) {
       return "myCssClass"; // applies style to all days. Use logic if needed.
    }
});

dateBox = new DateTextBox({
    id: "dateBox",
    popupClass: MyCalendar
});

首先是没有完整的法典。

But, I found a working example on jsfiddle that should help: http://jsfiddle.net/ecw5U/





相关问题
Get Dojo Radio Button Value?

I have an HTML form using dojo and have the following code for a radio button selection choice: dojo.require("dijit.form.RadioButton"); <link href="http://ajax.googleapis.com/ajax/libs/dojo/1....

is it possible to know if a dijit is displayed or not?

i have two divs on a page. each has several dijits. i have atoggle that shows only one div or the other. when i submit the form, i only want to validate the dijits that are in the div that is ...

dijit BorderContainer auto-grow

Is there a way to have a dijit.layout.BorderContainer auto-grow in height? I ve tried setting min-height: 200px; height: auto;, but it won t scale. I ve tried looking at the API, but that thing is a ...

Dojo Tabs as Custom Widgets

I ve created a number of widgets that are loaded as tab panes in a tabcontainer. Everything seems to work well, except I m getting different results when using my custom widgets vs. creating ...

What happened to Dojo DOH?

The Dojo Toolkit used to come with a testing facility called "Doh". It was in the /utils directory. Now when you download dojo-release-1.3.2 the /utils directory is nowhere to be found. Is Doh dead ...

热门标签