brOOper / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

HTML Markup in the Appointment Header #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In version 082 I used the following code:

...
Appointment a = new Appointment();
SpanElement se = Document.get().createSpanElement();
...
a.getMoveHandle().getElement().appendChild(se);
...

The project is now ported to 09beta, but I'm not able to implement the code
snippet above. I've seen that this is moved to AppointmentWidget, but how
do I access the widget?

Regards,
Terje

Original issue reported on code.google.com by terje...@hotmail.com on 15 Apr 2010 at 12:20

GoogleCodeExporter commented 8 years ago
The appointment is no longer a widget, and therefore you cannot add elements to 
it's 
header.

The appointment's Description field can be set to HTML markup, and will 
therefore 
render HTML inside the body of the Appointment Widget. We could also use this 
same 
approach for the appointment header.

Example, you could set appointment.setTitle("Meeting with <i>John</i>"); which 
would render the title, which is in the header, as HTML.

Let me know if that would work

Original comment by Brad.Ryd...@gmail.com on 15 Apr 2010 at 5:24

GoogleCodeExporter commented 8 years ago
As far as I've tested, this doesn't work in current version, but surely I'd like
writing HTML in appointment title. I'm not sure if this will solve my problem, 
but I
will try if html possibility appears.

Regards,
Terje

Original comment by terje...@hotmail.com on 16 Apr 2010 at 7:14

GoogleCodeExporter commented 8 years ago
Terje, HTML markup in the header doesn't exist yet in the current version, but 
we'll 
add it. Right now there is no way (or plan) to allow for customization of 
Appointment 
widgets

Carlos, maybe we could (in one of our later 1.x releases) look at extracting 
the 
creation of appointment widgets, layout rendering, etc, so that it can be 
customized.

The service locator pattern comes to mind
http://martinfowler.com/articles/injection.html#UsingAServiceLocator

Thoughts?

Original comment by Brad.Ryd...@gmail.com on 16 Apr 2010 at 7:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Issue 56 has been merged into this issue.

Original comment by Brad.Ryd...@gmail.com on 1 Jun 2010 at 9:42

GoogleCodeExporter commented 8 years ago
This change has been applied to both the DayView and MonthView in trunk. You 
can 
checkout and compile the code if you want to test it out, or use the latest 
version in 
your project. We will include this change in the upcoming 0.9.1 release.

Original comment by Brad.Ryd...@gmail.com on 1 Jun 2010 at 9:55

GoogleCodeExporter commented 8 years ago
This has been added to the latest 0.9.1 release posted to the downloads page

Original comment by Brad.Ryd...@gmail.com on 28 Jun 2010 at 6:52