Custom calendar Component - apache-flex

I need a Date custom component which is date should be disable when selected the calendar icon.
If any one have pls share me.

What did you mean?
https://www.flextras.com//index.cfm?event=ProductHome&productID=15
http://www.keepcore.com/composants-flex/flex-calendar-component.html
http://www.imbizzi.com/
(!) http://forums.adobe.com/message/2887093
http://www.flashenabledblog.com/2007/07/06/interactive-flex-calendar-componentwith-source-just-awesome/
http://www.quietlyscheming.com/blog/components/interactive-calendar/
(!) http://www.adobe.com/products/flex/ibmilogelixir/

Related

Full Calendar/Angular - Handle date cell content when rendering

I'm using the full-calendar component for Angular and I want to customize the content of each date cell according to different conditions. For example if the date is invalid (I have a function that validates the date), I want to change the date's cell background color. Otherwise, if its valid I want to add a plus button inside to add events. Besides that I want to add custom animations and hover effects.
How can I take control of the date is being render ?
I manage to change the background color with dayCellDidMount hook:
dayCellDidMount: (arg) => {
if(!this.dateIsValid(arg.date, arg.isPast)){
arg.el.style.backgroundColor = "#eeeeee";
}
},
I don't think that's the best way to do it and I still can't manage to add the plus button inside the cell.
Can someone achieve this or something similar? Your help would be appreciated, thanks.
If you know another calendar to integrate with Angular that has this features I'm open to suggestions.

how use specify icon, label and link to app for determineAttributeKind on cascades

I`m developer blackberry and try create to new attribute under to contacts but not set knows determineattrib correctly.
Code:
ContactBuilder builder;
builder.addAttribute(ContactAttributeBuilder()
.setKind(AttributeKind::Name)
.setSubKind(AttributeSubKind::NameGiven)
.setValue("NAME_test"));
...
other attributes
...
builder.addAttribute(ContactAttributeBuilder()
.setKind(ContactAttributeBuilder::determineAttributeKind("Attr_test"))
.setSubKind(ContactAttributeBuilder::determineAttributeSubKind("SubAttr_test"))
.setValue("1234567890"));
...
With other default attribute no problem.
I found a example:
https://supportforums.blackberry.com/t5/Native-Development/Gmail-synchronization-removes-some-attributes-from-contacts/td-p/2676999
result:
http://i.stack.imgur.com/wzh3s.png
The problem is that not show the attributes ("Attr_test" and "SubAttr_Test")names in the contact.
¿How adding a icon, label and link for app on attribute from the application?
thanks !!!
A photo you add with:
ContactBuilder.addPhoto()
https://developer.blackberry.com/native/reference/cascades/bb__pim__contacts__contactbuilder.html#function-addphoto-photo-isprimary
A link to a website you could add with AttributeKind::Website.
https://developer.blackberry.com/native/reference/cascades/bb__pim__contacts__attributekind.html#enumvalue-website
I don't know what kind of label you want to add but you would have to use one of the AttributeKind::Type enum values to add a label.

Display the month in QCalendarWidget

I use a QCalendarWidget for my application. I would like to display the month and the year in the Calendar but by default, I have just the number of the week, and it's not useful.
Is it possible to display these parameters ?
just set setNavigationBarVisible (true);
The navigationBarVisible property is what you are looking for. Also you can look through this example to learn more about calendar widget.

Richfaces calendar manual input value not binding

I've got a richfaces calendar component defined as
<rich:calendar id="startDate" value="#{myBean.dateSet.startDate}"
timeZone="#{myBean.dateSet.timeZone}"
datePattern="#{myBean.dateSet.datePattern}"
enableManualInput="true" immediate="true">
<a4j:support event="onchanged" action="#{myBean.adjustEndDate}"
reRender="startDate,endDate" ajaxSingle="true" />
</rich:calendar>
when I'm changing the date using the calendar popup/gui everything is working fine.
However when I'm changing it via the input text field, the value is not being updated to myBean.dateSet.startDate, although it is being updated correctly on the calendar component itself (i.e. if I click the icon for calendar popup it shows the updated current date).
Any suggestions on how I can get it to update the value to myBean correctly?
Thanks!
Use oninputchange event, that's the one that tracks manual changes.
I'm not sure if this helps, but if you want to get the value inside the input text field, you refer to it as <calId>InputDate . So in your case, the input text field will have id startDateInputDate. Hope this helps somehow!
You can use the oninputchange event inside the rich:calendar component like Max Katz suggested.
For example:
<rich:calendar
...
oninputchange="invokeCalendarOnChange(event,'#{rich:clientId('$idOfTheCalendar')}')"
...
</rich:calendar>
function invokeCalendarOnChange(event, id) {
var c = RichFaces.$(id);
c.invokeEvent("change", RichFaces.getDomElement(c.id), event, c.selectedDate);
}
Hope that helps!

How to display changing data in XUL

I'm trying to build a firefox extension which can get rss feeds and display them in a popup panel. But I'm not aware about how to display feeds in a panel(I know how to display static text).Because the feed is varying all the time.
Any help regarding this matter will be appreciated.
Thanks in advance.
How about using setInterval to call a function that redraws the panel at the time interval you specify?
You can create DOM elements inside a XUL popup panel using JavaScript, but you have to remember that the panel requires the XHTML namespace:
<panel id="your-id" noautohide="true" xmlns:html="http://www.w3.org/1999/xhtml">
and instead of using:
document.createElement("p"); //for example
you would need to use:
document.createElementNS("http://www.w3.org/1999/xhtml","html:p");
You can get the popup reference by id and just create and append elements as you need them. Then the following might help:
https://developer.mozilla.org/en/XUL/PopupGuide/OpenClose:

Resources