Typedef
Static Public Summary | ||
public |
An option to overwrite defaults UI color of all event nodes |
since 2.0.0 |
public |
Default options for generating the timeline by the jQuery.Timeline plugin. |
since 2.0.0 |
public |
Various effect settings to the timeline object displayed in the DOM |
since 2.0.0 |
public |
Color scheme to overwrite defaults UI color of the event node |
since 2.0.0 |
public |
|
since 2.0.0 |
public |
The preset as default of event parameters on the timeline |
since 2.0.0 |
public |
|
since 2.0.0 |
public |
|
since 2.0.0 |
public |
The limited grid number per scale of timeline |
since 2.0.0 |
public |
In principle, this option conforms to the specification of options in "Date.prototype.toLocaleString()". |
|
public |
|
|
public |
You can set the upper and lower ruler individually |
since 2.0.0 |
public |
Can define the ruler position to top or bottom and both |
since 2.0.0 |
public |
|
since 2.0.0 |
public |
Color scheme to overwrite defaults UI color of the timeline instance |
since 2.1.0 |
Static Public
public ColorScheme: Object since 2.0.0 source
An option to overwrite defaults UI color of all event nodes
Properties:
Name | Type | Attribute | Description |
theme | ThemeColors |
|
Color scheme to overwrite defaults UI color of the timeline instance |
event | EventColors |
|
Color scheme to overwrite defaults UI color of the event node |
hookEventColors | function |
|
You can declare a function to set colors with referring the data each event node |
public Default: Object since 2.0.0 source
Default options for generating the timeline by the jQuery.Timeline plugin. Those defaults are overridden to undefined settings of the timeline configuration.
Properties:
Name | Type | Attribute | Description |
type | string |
|
View type of timeline event is either "bar" or "point" or "mixed" |
scale | string |
|
Timetable's minimum level scale is either "year", "month", "week", "day", "hour", "minute" |
startDatetime | string |
|
Beginning date time of timetable on the timeline. format is ( "^d{4}(/|-)d{2}(/|-)d{2}\sd{2}:d{2}:d{2}$" ) or "currently" |
endDatetime | string |
|
Ending date time of timetable on the timeline. format is ( "^d{4}(/|-)d{2}(/|-)d{2}\sd{2}:d{2}:d{2}$" ) or "auto" |
headline | Headline |
|
Settings for the content customize in the headline |
footer | Footer |
|
Settings for the content customize in the footer |
range | number | string |
|
Override the scale range of the timeline to be rendered when endDatetime is undefined or "auto" |
sidebar | Sidebar |
|
Settings for the content of the sidebar |
rows | number | string |
|
Rows of timeline event area |
rowHeight | number |
|
Height of one row |
width | number | string |
|
Fixed width (pixel) of timeline view |
height | number | string |
|
Fixed height (pixel) of timeline view; Defaults to ( rows * rowHeight ) |
minGridSize | number |
|
Override value of minimum size (pixel) of timeline grid |
marginHeight | number |
|
Margin (pixel) top and bottom of events on the timeline |
ruler | Ruler |
|
Settings of the ruler |
rangeAlign | number | string |
|
Possible values are "left", "center", "right", "current", "latest" and specific event id |
loader | string |
|
Custom loader definition, possible values are "default", false and selector of loader element |
hideScrollbar | boolean |
|
Whether or not to display the scroll bar displayed when the width of the timeline overflows (even if it is set to non-display, it will not function depending on the browser) |
eventMeta | EventMeta |
|
Display meta of range on event node when the timeline type is "bar" |
eventData | array<Object> |
|
You can declare the events with object format as default events you want to place |
effects | Effects |
|
You can declare effective styles as view of the timeline object |
colorScheme | ColorScheme |
|
Can overwrite defaults UI color of the event nodes |
storage | string |
|
Specification of Web storage to cache event data, defaults to sessionStorage |
reloadCacheKeep | boolean |
|
Whether to load cached events during reloading, the cache is discarded if false |
zoom | boolean |
|
Whether to use the ability to zoom the scale of the timeline by double clicking on any scale on the ruler |
wrapScale | boolean |
|
Whether wrapping new scale in the timeline container when zoom |
engine | string |
|
Choose dependent module to core as rendering engine. It'll be "canvas" or "d3.js"; Maybe add in future version |
debug | boolean |
|
Enable to debug mode if true then output logs for debugging to console; defaults to false |
public Effects: Object since 2.0.0 source
Various effect settings to the timeline object displayed in the DOM
Properties:
Name | Type | Attribute | Description |
presentTime | boolean |
|
Whether to show marking a present time on the timeline container. |
hoverEvent | boolean |
|
Whether to show the effect when individual events on the timeline container are mouse over. |
stripedGridRow | boolean |
|
|
horizontalGridStyle | string |
|
The style of horizontal grid line on the Timeline container. possible values are "solid", "dotted", "none". |
verticalGridStyle | string |
|
The style of vertical grid line on the Timeline container. possible values are "solid", "dotted", "none". |
public EventColors: Object since 2.0.0 source
Color scheme to overwrite defaults UI color of the event node
public EventMeta: Object since 2.0.0 source
Properties:
Name | Type | Attribute | Description |
display | boolean |
|
|
scale | string |
|
|
locale | string |
|
This value is an argument "locales" of |
format | LocaleOptions |
|
This value is an argument "options" of |
content | string |
|
This is value for if you want to show custom content on the meta |
public EventParams: Object since 2.0.0 source
The preset as default of event parameters on the timeline
Properties:
Name | Type | Attribute | Description |
uid | string | An unique id of event data, this can not define because this value is automatically generate as data for cache only |
|
eventId | number |
|
It is an ID that identifies an event for you to manipulate event data via each method. If omitted, consecutive numbers are automatically assigned. |
x | number | Can not define because this value is automatically generate as data for cache only |
|
y | number | Can not define because this value is automatically generate as data for cache only |
|
width | number | Can not define because this value is automatically generate as data for cache only |
|
height | number | Can not define because this value is automatically generate as data for cache only |
|
start | string | Can not define because this value is automatically generate as data for cache only |
|
end | string | Can not define because this value is automatically generate as data for cache only |
|
row | number | Can not define because this value is automatically generate as data for cache only |
|
bgColor | string |
|
|
color | string |
|
|
bdColor | string |
|
|
label | string |
|
|
content | string |
|
|
category | string |
|
|
image | string |
|
|
margin | number |
|
|
rangeMeta | string |
|
|
size | number | string |
|
Define the diameter size of pointer when type of the timeline is "point". Possible values are "large", "normal", "small" and value of pixel. |
extend | Object |
|
The specified key/value pair is replaced with the data attribute of the event element. |
remote | boolean |
|
|
relation | RelationOption |
|
Setting for connecting events by relation lines when the timeline type is "point". |
callback | function |
|
Callback processing that binds to openEvent method when this event is clicked. |
public Footer: Object since 2.0.0 source
Properties:
Name | Type | Attribute | Description |
display | boolean |
|
Whether to display headline |
content | string |
|
|
range | boolean |
|
Visible if true |
locale | string |
|
This value is an argument "locales" of |
format | LocaleOptions |
|
This value is an argument "options" of |
public Headline: Object since 2.0.0 source
Properties:
Name | Type | Attribute | Description |
display | boolean |
|
Whether to display headline |
title | string |
|
|
range | boolean |
|
Hide if false |
locale | string |
|
This value is an argument "locales" of |
format | LocaleOptions |
|
This value is an argument "options" of |
public LimitScaleGrids: Object since 2.0.0 source
The limited grid number per scale of timeline
Properties:
Name | Type | Attribute | Description |
millennium | number |
|
In other words it's 100000 years |
century | number |
|
In other words it's 50000 years |
decade | number |
|
In other words it's 5000 years |
lustrum | number |
|
In other words it's 2500 years |
year | number |
|
In other words it's 500 years |
month | number |
|
In other words it's 45 years |
week | number |
|
In other words it's 10 years |
day | number |
|
In other words it's about 1 years |
hour | number |
|
In other words it's 30 days |
quarterHour | number |
|
In other words it's 7.5 days |
halfHour | number |
|
In other words it's 15 days |
minute | number |
|
In other words it's 12 hours |
second | number |
|
In other words it's 15 minutes |
public LocaleOptions: Object source
In principle, this option conforms to the specification of options in "Date.prototype.toLocaleString()". However, there includes some extensions of this plugin original.
Properties:
Name | Type | Attribute | Description |
hour12 | boolean |
|
Whether to use 12-hour time (as opposed to 24-hour time). Possible values are true and false. |
localeMatcher | string |
|
|
timeZone | string |
|
|
hourCycle | string |
|
|
formatMatcher | string |
|
|
weekday | string |
|
The representation of the weekday. Possible values are "narrow", "short", "long". |
era | string |
|
The representation of the era. Possible values are "narrow", "short", "long". |
year | string |
|
The representation of the year. Possible values are "numeric", "2-digit". Then an extended value by this plugin is "zerofill". |
month | string |
|
The representation of the month. Possible values are "numeric", "2-digit", "narrow", "short", "long". |
day | string |
|
The representation of the day. Possible values are "numeric", "2-digit". Then an extended value by this plugin is "ordinal". |
hour | string |
|
The representation of the hour. Possible values are "numeric", "2-digit". Then an extended value by this plugin is "fulltime". |
minute | string |
|
The representation of the minute. Possible values are "numeric", "2-digit". Then an extended value by this plugin is "fulltime". |
second | string |
|
The representation of the second. Possible values are "numeric", "2-digit". Then an extended value by this plugin is "fulltime". |
timeZoneName | string |
|
The representation of the time zone name. Possible values are "short", "long". |
public RelationOption: Object source
Properties:
Name | Type | Attribute | Description |
before | number |
|
Set target eventID to connect the relation line to the event (leftward on the timeline) in chronological before from oneself event. |
after | number |
|
Set target eventID to connect the relation line to the event (rightward on the timeline) in chronological after from oneself event. |
linesize | number |
|
|
linecolor | string |
|
|
curve | number | string | boolean |
|
Whether the connection line is curved if the connection events are not on the same horizontal. If you specify a boolean value or a shorthand (0 or 1 only), it will be automatically curved. As with the previous version, it is also possible to specify the type of curve using defined preset values. |
public Ruler: Object since 2.0.0 source
You can set the upper and lower ruler individually
Properties:
Name | Type | Attribute | Description |
top | RulerOptions |
|
The upper ruler configuration. The upper ruler is hidden if omitted. |
bottom | RulerOptions |
|
The lower ruler configuration. The lower ruler is hidden if omitted. |
public RulerOptions: Object since 2.0.0 source
Can define the ruler position to top or bottom and both
Properties:
Name | Type | Attribute | Description |
lines | array<String> |
|
Multiple tick marks can be set, and array elements are set in order from the top. Set same scale of Default.scale if omitted this. c.g. [ 'year', 'month', 'day', 'weekday' ] |
height | number |
|
The height of a row of rulers |
fontSize | number |
|
|
color | string |
|
|
background | string |
|
|
locale | string |
|
This value is an argument "locales" of |
format | LocaleOptions |
|
This value is an argument "options" of |
public Sidebar: Object since 2.0.0 source
Properties:
Name | Type | Attribute | Description |
sticky | boolean |
|
Whether does sticky the sidebar by using "display: sticky" of CSS. |
overlay | boolean |
|
|
list | array<String> |
|
Define the contents of the row of the sidebar. Appropriate escaping is necessary when using HTML. |
public ThemeColors: Object since 2.1.0 source
Color scheme to overwrite defaults UI color of the timeline instance
Properties:
Name | Type | Attribute | Description |
name | string |
|
|
text | string |
|
Defaults to basic text color |
subtext | string |
|
|
offtext | string |
|
|
modesttext | string |
|
|
line | string |
|
Defaults to basic border color |
offline | string |
|
|
activeline | string |
|
|
background | string |
|
Defaults to background color |
invertbg | string |
|
|
striped1 | string |
|
|
striped2 | string |
|
|
active | string |
|
|
marker | string |
|
|
gridbase | string |
|