Rendering MiniCalendar as your screenshot

Hi,

  How can I render the miniCalendar the same way you do in the documentation area (the screenshot you show first)? I could render the MiniCalendar but in a landscape way, not verticar as you do in the documentation. Could you give us an example?

  Thanks

Aleix Vergés

Check samples\05_calendar\04_layout.html
That is sample, from which screenshot was taken

but the coding methode is completly different in that file? :blush:

It uses dhtmlxLayout to organize panels , and

layout.cells("b").attachScheduler();

replaces

scheduler.init(...)

but it still the same scheduler, which can be configured and used in the same way.

ok thanks…
is it possible to place the mini calender on a complete different place on a website?
(not using dhtmlxLayout, but my own website)

Sure, you can use

scheduler.renderCalendar
docs.dhtmlx.com/doku.php?id=dhtm … ercalendar

to render mini-calendar at any place on the page

Why cant i use , or is there another way to load the minicalender without an event?

function render_calendar(curr, date){
if (curr)
scheduler.destroyCalendar(curr);

	return scheduler.renderCalendar({
		position: { left: 280, top: 250 },
		date:scheduler._date, 
		navigation:true,
		handler:function(date){
			scheduler.setCurrentView(date);
		}
	});
}

Actually, it works locally.
Sample is attached.
1272458875.zip (51.6 KB)

thnx, its working now…