Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions docs/guides/custom-events-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,21 @@ and coloring the event's duration into orange color.*
Then, here is the code you should use:

~~~js
scheduler.attachEvent("onTemplatesReady", function(){
scheduler.templates.event_header = function(start,end,ev){
if (event.important == true){
return ("<img src='red_check.png'/> <b style='color:#F08080'>"+
scheduler.templates.event_date(start)+" - "+
} else {
return(scheduler.templates.event_date(start)+" - "+
scheduler.templates.event_date(end))
}
};
scheduler.attachEvent("onTemplatesReady", function () {
scheduler.templates.event_header = function (start, end, ev) {
if (event.important) {
return `<div class="customHeader">
<img src='red_check.png'/>
<b>${scheduler.templates.event_date(start)} - ${scheduler.templates.event_date(end)}</b>
</div>`
} else {
return (scheduler.templates.event_date(start) + " - " +
scheduler.templates.event_date(end))
}
};
});
...
scheduler.init('scheduler_here', new Date(2019, 6, 5), "week");
scheduler.init('scheduler_here', new Date(2027, 6, 5), "week");
~~~


Expand All @@ -80,13 +82,11 @@ scheduler.templates.event_text = function(start,end,ev){
Then, here is the code you should use:

~~~js
scheduler.attachEvent("onTemplatesReady", function(){
scheduler.templates.event_text="function(start,end,event){"
return "<b>" + event.text + "</b>

<i>" + event.location + "</i>";
scheduler.attachEvent("onTemplatesReady", function() {
scheduler.templates.event_text = function(start,end,event) {
return `<b>${event.text}</b><br><i>${event.location}</i>`;
}
});
...
scheduler.init('scheduler_here', new Date(2019, 6, 5), "week");
scheduler.init('scheduler_here', new Date(2027, 6, 5), "week");
~~~
4 changes: 2 additions & 2 deletions docs/guides/lightbox-editors.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: "Lightbox Controls"

Lightbox is an edit form used to alter the event's details. The default lightbox is presented in the image below.

![lightbox](/img/lightbox.png)
![lightbox](/img/standard_form.png)

## Lightbox Structure

Expand All @@ -16,7 +16,7 @@ The structure of the lightbox is specified by the **sections** property of the [

~~~js
//default lightbox definition
scheduler.config.lightbox.sections="["
scheduler.config.lightbox.sections = [
{name:"description", height:200, map_to:"text", type:"textarea" , focus:true},
{name:"time", height:72, type:"time", map_to:"auto"}
];
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/minicalendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ In this section we'll demonstrate you how to add a third party mini calendar (da

![custom_minicalendar](/img/custom_minicalendar.png)

**Related sample** [3rd party Mini Calendar in the header](https://snippet.dhtmlx.com/5/0dca14de9)
**Related sample** [3rd party Mini Calendar in the header](https://snippet.dhtmlx.com/7rozjr08)

In our sample, we will add a mini calendar on the base of [jQuery](https://jquery.com) and [Bootstrap Datepicker](https://bootstrap-datepicker.readthedocs.io/en/latest/). If you use other libraries, you'll need to modify the code but the main approach should stay the same:

Expand Down Expand Up @@ -430,7 +430,7 @@ To customize the format of dates presented in the mini calendar (date picker), y

~~~js
scheduler.templates.calendar_month = scheduler.date.date_to_str("%M, %Y");
scheduler.init('scheduler_here',new Date(2019,2,1),"day");
scheduler.init('scheduler_here',new Date(2027,2,1),"day");
...
const calendar = scheduler.renderCalendar({..});
~~~
Expand Down Expand Up @@ -491,7 +491,7 @@ To assign a custom CSS class to a day, you can use the [markCalendar](api/method
<script>
const calendar = scheduler.renderCalendar({...});
...
scheduler.markCalendar(calendar, new Date(2019,3,1), "my_style");
scheduler.markCalendar(calendar, new Date(2027,3,1), "my_style");
</script>
~~~

Expand Down
2 changes: 1 addition & 1 deletion docs/views/agenda-view-templates-legacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: "Agenda View Templates"

*The article refers to dhtmlxScheduler 6.0 or earlier versions. If you use dhtmlxScheduler 7.0+, see details [here](views/agenda-view-templates.md).*

![agenda_view_templates](/img/agenda_view_templates.png)
![agenda_view_templates](/img/agenda_view_templates_legacy.png)

- [agenda_date](api/template/agenda_date.md) - the date in the header of the view
- [agenda_text](api/template/agenda_text.md) - the text in the second column of the view
Expand Down
2 changes: 2 additions & 0 deletions docs/views/agenda-view-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ sidebar_label: "Agenda View Templates"

# Agenda View Templates

![agenda_view_templates](/img/agenda_view_templates.png)

*If you use dhtmlxScheduler 6.0 or earlier, see details [here](views/agenda-view-templates-legacy.md).

- [agenda_date](api/template/agenda_date.md) - the date in the header of the view
Expand Down
5 changes: 1 addition & 4 deletions docs/views/timeline-view-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ sidebar_label: "Timeline View Templates"

# Timeline View Templates

![timeline_view_templates_01](/img/timeline_view_templates_01.png)

![timeline_view_templates_02](/img/timeline_view_templates_02.png)

![timeline_view_templates](/img/timeline_view_templates.png)

- [event_bar_text](api/template/event_bar_text.md) - the event text
- [event_class](api/template/event_class.md) - the css style for the event container
Expand Down
2 changes: 1 addition & 1 deletion docs/views/units.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ scheduler.date.units_start = function (date) {

Starting from version 4.1, you have a possibility to assign events to several units.

![multiple_sections](/img/multiple_sections.png)
![multiple_sections](/img/multiple_sections_units.png)


To enable the possibility:
Expand Down
2 changes: 1 addition & 1 deletion docs/views/weekagenda-view-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: "WeekAgenda View Templates"

# WeekAgenda View Templates

![view_templates_week_agenda](/img/view_templates_week_agenda.png)
![view_templates_week_agenda](/img/weekAgenda_view_templates.png)

- [week_agenda_event_text](api/template/week_agenda_event_text.md) - specifies the event text
- [week_agenda_scale_date](api/template/week_agenda_scale_date.md) - the date of a day cell of the view
Expand Down
6 changes: 3 additions & 3 deletions docs/views/weekagenda.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The Week Agenda view is a combination of Week and Agenda views presenting a list
![weekagenda_view](/img/weekagenda_view.png)


[WeekAgenda view](https://docs.dhtmlx.com/scheduler/samples/03_extensions/24_week_agenda.html)
[Week Agenda view](https://docs.dhtmlx.com/scheduler/samples/03_extensions/24_week_agenda.html)


## Initialization
Expand Down Expand Up @@ -43,7 +43,7 @@ scheduler.plugins({
scheduler.locale.labels.week_agenda_tab = "Week Agenda";
~~~

[WeekAgenda view](https://docs.dhtmlx.com/scheduler/samples/03_extensions/24_week_agenda.html)
[Week Agenda view](https://docs.dhtmlx.com/scheduler/samples/03_extensions/24_week_agenda.html)

## GUI details

Expand All @@ -54,7 +54,7 @@ scheduler.locale.labels.week_agenda_tab = "Week Agenda";
## Related guides

- [Common Config Instructions](guides/configuration.md)
- [WeekAgenda View Templates](views/weekagenda-view-templates.md)
- [Week Agenda View Templates](views/weekagenda-view-templates.md)
- [Loading Data](guides/loading-data.md)
- [Skins](guides/skins.md)
- [Localization](guides/localization.md)
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ sidebar_label: "Timeline-Ansichtsvorlagen"

# Timeline-Ansichtsvorlagen

![timeline_view_templates_01](/img/timeline_view_templates_01.png)


![timeline_view_templates_02](/img/timeline_view_templates_02.png)
![timeline_view_templates](/img/timeline_view_templates.png)

- [event_bar_text](api/template/event_bar_text.md) - zeigt den Text innerhalb eines Ereignisses an
- [event_class](api/template/event_class.md) - definiert den CSS-Stil für den Ereignis-Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ sidebar_label: "타임라인 뷰 템플릿"

# 타임라인 뷰 템플릿

![timeline_view_templates_01](/img/timeline_view_templates_01.png)


![timeline_view_templates_02](/img/timeline_view_templates_02.png)
![timeline_view_templates](/img/timeline_view_templates.png)

- [event_bar_text](api/template/event_bar_text.md) - 이벤트 내부에 표시되는 텍스트를 설정합니다.
- [event_class](api/template/event_class.md) - 이벤트 컨테이너의 CSS 스타일을 정의합니다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ sidebar_label: "Шаблоны представления Timeline"

# Шаблоны представления Timeline

![timeline_view_templates_01](/img/timeline_view_templates_01.png)

![timeline_view_templates_02](/img/timeline_view_templates_02.png)
![timeline_view_templates](/img/timeline_view_templates.png)

- [event_bar_text](api/template/event_bar_text.md) - отображает текст внутри события
- [event_class](api/template/event_class.md) - определяет CSS-стиль для контейнера события
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ sidebar_label: "时间线视图模板"

# 时间线视图模板

![timeline_view_templates_01](/img/timeline_view_templates_01.png)


![timeline_view_templates_02](/img/timeline_view_templates_02.png)
![timeline_view_templates](/img/timeline_view_templates.png)

- [event_bar_text](api/template/event_bar_text.md) - 显示事件内部的文本
- [event_class](api/template/event_class.md) - 定义事件容器的CSS样式
Expand Down
Binary file modified static/img/agenda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/agenda_view_templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/agenda_view_templates_legacy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/architecture.png
Binary file not shown.
Binary file modified static/img/buttons_property.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/calendar_in_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/checkbox_editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/combo_editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/container_autoresize_property.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/contrast_black_skin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/contrast_white_skin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_cell_content.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_event_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_event_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_event_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_minicalendar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/custom_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/customizing_edit_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/customizing_select_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/day_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/day_view_properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/day_view_templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/day_xy_property.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/default_event_text.png
Binary file modified static/img/grid.png
Binary file modified static/img/grid_view.png
Binary file modified static/img/grid_view_templates.png
Binary file modified static/img/hiding_time_units.png
Binary file modified static/img/highlighting_hidden_hours.png
Binary file modified static/img/in_the_lightbox.png
Binary file modified static/img/lightbox_buttons.png
Binary file removed static/img/lightbox_config.png
Diff not rendered.
Binary file modified static/img/limits_priority.png
Binary file modified static/img/map.png
Binary file modified static/img/map_view.png
Binary file modified static/img/map_view_templates.png
Binary file modified static/img/map_xy_property.png
Binary file modified static/img/mini_calendar.png
Binary file modified static/img/month.png
Binary file modified static/img/month_view.png
Binary file modified static/img/month_view_templates.png
Binary file modified static/img/month_xy_property.png
Binary file modified static/img/multiday_units.png
Binary file modified static/img/multiple_sections.png
Binary file added static/img/multiple_sections_units.png
Binary file modified static/img/multiselect_editor.png
Binary file modified static/img/option_event_text.png
Binary file modified static/img/outside_the_scheduler.png
Binary file modified static/img/radio_editor.png
Binary file modified static/img/resizemonthtimed_config.png
Binary file modified static/img/scheduler_standard_form.png
Binary file modified static/img/scheduler_wide_form.png
Binary file modified static/img/select_editor.png
Binary file modified static/img/standard_form.png
Binary file modified static/img/stretching_events_01.png
Binary file modified static/img/stretching_events_02.png
Binary file modified static/img/template_editor.png
Binary file modified static/img/textarea_editor.png
Binary file modified static/img/time_editor.png
Binary file modified static/img/timeline.png
Binary file modified static/img/timeline_bar_mode.png
Binary file modified static/img/timeline_cell_mode.png
Binary file modified static/img/timeline_days_mode.png
Binary file modified static/img/timeline_loading.png
Binary file modified static/img/timeline_scale_01.png
Binary file modified static/img/timeline_scale_interval.png
Binary file modified static/img/timeline_second_axis.png
Binary file modified static/img/timeline_tree_mode.png
Binary file modified static/img/timeline_view.png
Binary file added static/img/timeline_view_templates.png
Binary file removed static/img/timeline_view_templates_01.png
Diff not rendered.
Binary file removed static/img/timeline_view_templates_02.png
Diff not rendered.
Binary file modified static/img/units.png
Binary file modified static/img/units_scroll.png
Binary file modified static/img/units_view.png
Binary file modified static/img/units_view_templates.png
Binary file modified static/img/week.png
Binary file modified static/img/weekAgenda_view_templates.png
Binary file modified static/img/weekView_properties.png
Binary file removed static/img/week_agenda_view.png
Diff not rendered.
Binary file removed static/img/week_template.png
Diff not rendered.
Binary file modified static/img/week_view.png
Binary file modified static/img/week_view_templates.png
Binary file modified static/img/week_xy_property.png
Binary file modified static/img/weekagenda.png
Binary file modified static/img/weekagenda_view.png
Binary file removed static/img/weekagendaview.png
Diff not rendered.
Binary file removed static/img/wideForm_property.png
Diff not rendered.
Binary file removed static/img/wide_form.png
Diff not rendered.
Binary file modified static/img/wide_form_false.png
Binary file modified static/img/wide_form_true.png
Binary file modified static/img/year.png
Binary file modified static/img/year_view.png
Binary file modified static/img/year_view_templates.png