You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5812 lines
126 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="JsDoc Toolkit" />
  7. <title>JsDoc Reference - links.Timeline</title>
  8. <style type="text/css">
  9. /* default.css */
  10. body
  11. {
  12. font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
  13. width: 800px;
  14. }
  15. .header
  16. {
  17. clear: both;
  18. background-color: #ccc;
  19. padding: 8px;
  20. }
  21. h1
  22. {
  23. font-size: 150%;
  24. font-weight: bold;
  25. padding: 0;
  26. margin: 1em 0 0 .3em;
  27. }
  28. hr
  29. {
  30. border: none 0;
  31. border-top: 1px solid #7F8FB1;
  32. height: 1px;
  33. }
  34. pre.code
  35. {
  36. display: block;
  37. padding: 8px;
  38. border: 1px dashed #ccc;
  39. }
  40. #index
  41. {
  42. margin-top: 24px;
  43. float: left;
  44. width: 160px;
  45. position: absolute;
  46. left: 8px;
  47. background-color: #F3F3F3;
  48. padding: 8px;
  49. }
  50. #content
  51. {
  52. margin-left: 190px;
  53. width: 600px;
  54. }
  55. .classList
  56. {
  57. list-style-type: none;
  58. padding: 0;
  59. margin: 0 0 0 8px;
  60. font-family: arial, sans-serif;
  61. font-size: 1em;
  62. overflow: auto;
  63. }
  64. .classList li
  65. {
  66. padding: 0;
  67. margin: 0 0 8px 0;
  68. }
  69. .summaryTable { width: 100%; }
  70. h1.classTitle
  71. {
  72. font-size:170%;
  73. line-height:130%;
  74. }
  75. h2 { font-size: 110%; }
  76. caption, div.sectionTitle
  77. {
  78. background-color: #7F8FB1;
  79. color: #fff;
  80. font-size:130%;
  81. text-align: left;
  82. padding: 2px 6px 2px 6px;
  83. border: 1px #7F8FB1 solid;
  84. }
  85. div.sectionTitle { margin-bottom: 8px; }
  86. .summaryTable thead { display: none; }
  87. .summaryTable td
  88. {
  89. vertical-align: top;
  90. padding: 4px;
  91. border-bottom: 1px #7F8FB1 solid;
  92. border-right: 1px #7F8FB1 solid;
  93. }
  94. /*col#summaryAttributes {}*/
  95. .summaryTable td.attributes
  96. {
  97. border-left: 1px #7F8FB1 solid;
  98. width: 140px;
  99. text-align: right;
  100. }
  101. td.attributes, .fixedFont
  102. {
  103. line-height: 15px;
  104. color: #002EBE;
  105. font-family: "Courier New",Courier,monospace;
  106. font-size: 13px;
  107. }
  108. .summaryTable td.nameDescription
  109. {
  110. text-align: left;
  111. font-size: 13px;
  112. line-height: 15px;
  113. }
  114. .summaryTable td.nameDescription, .description
  115. {
  116. line-height: 15px;
  117. padding: 4px;
  118. padding-left: 4px;
  119. }
  120. .summaryTable { margin-bottom: 8px; }
  121. ul.inheritsList
  122. {
  123. list-style: square;
  124. margin-left: 20px;
  125. padding-left: 0;
  126. }
  127. .detailList {
  128. margin-left: 20px;
  129. line-height: 15px;
  130. }
  131. .detailList dt { margin-left: 20px; }
  132. .detailList .heading
  133. {
  134. font-weight: bold;
  135. padding-bottom: 6px;
  136. margin-left: 0;
  137. }
  138. .light, td.attributes, .light a:link, .light a:visited
  139. {
  140. color: #777;
  141. font-style: italic;
  142. }
  143. .fineprint
  144. {
  145. text-align: right;
  146. font-size: 10px;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <!-- ============================== header ================================= -->
  152. <!-- begin static/header.html -->
  153. <div id="header">
  154. </div>
  155. <!-- end static/header.html -->
  156. <!-- ============================== classes index ============================ -->
  157. <div id="index">
  158. <!-- begin publish.classesIndex -->
  159. <div align="center"><a href="../index.html">Class Index</a>
  160. | <a href="../files.html">File Index</a></div>
  161. <hr />
  162. <h2>Classes</h2>
  163. <ul class="classList">
  164. <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
  165. <li><a href="../symbols/Array.html">Array</a></li>
  166. <li><a href="../symbols/links.Timeline.html">links.Timeline</a></li>
  167. <li><a href="../symbols/links.Timeline.ClusterGenerator.html">links.Timeline.ClusterGenerator</a></li>
  168. <li><a href="../symbols/links.Timeline.Item.html">links.Timeline.Item</a></li>
  169. <li><a href="../symbols/links.Timeline.ItemBox.html">links.Timeline.ItemBox</a></li>
  170. <li><a href="../symbols/links.Timeline.ItemDot.html">links.Timeline.ItemDot</a></li>
  171. <li><a href="../symbols/links.Timeline.ItemFloatingRange.html">links.Timeline.ItemFloatingRange</a></li>
  172. <li><a href="../symbols/links.Timeline.ItemRange.html">links.Timeline.ItemRange</a></li>
  173. <li><a href="../symbols/links.Timeline.StepDate.html">links.Timeline.StepDate</a></li>
  174. </ul>
  175. <hr />
  176. <!-- end publish.classesIndex -->
  177. </div>
  178. <div id="content">
  179. <!-- ============================== class title ============================ -->
  180. <h1 class="classTitle">
  181. Class links.Timeline
  182. </h1>
  183. <!-- ============================== class summary ========================== -->
  184. <p class="description">
  185. <br /><i>Defined in: </i> <a href="../symbols/src/timeline.js.html">timeline.js</a>.
  186. </p>
  187. <!-- ============================== constructor summary ==================== -->
  188. <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class links.Timeline.">
  189. <caption>Class Summary</caption>
  190. <thead>
  191. <tr>
  192. <th scope="col">Constructor Attributes</th>
  193. <th scope="col">Constructor Name and Description</th>
  194. </tr>
  195. </thead>
  196. <tbody>
  197. <tr>
  198. <td class="attributes">&nbsp;</td>
  199. <td class="nameDescription" >
  200. <div class="fixedFont">
  201. <b><a href="../symbols/links.Timeline.html#constructor">links.Timeline</a></b>(container, options)
  202. </div>
  203. <div class="description"></div>
  204. </td>
  205. </tr>
  206. </tbody>
  207. </table>
  208. <!-- ============================== properties summary ===================== -->
  209. <!-- ============================== methods summary ======================== -->
  210. <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class links.Timeline.">
  211. <caption>Method Summary</caption>
  212. <thead>
  213. <tr>
  214. <th scope="col">Method Attributes</th>
  215. <th scope="col">Method Name and Description</th>
  216. </tr>
  217. </thead>
  218. <tbody>
  219. <tr>
  220. <td class="attributes">&lt;static&gt; &nbsp;</td>
  221. <td class="nameDescription">
  222. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.addClassName">addClassName</a></b>(elem, className)
  223. </div>
  224. <div class="description">Adds one or more className's to the given elements style</div>
  225. </td>
  226. </tr>
  227. <tr>
  228. <td class="attributes">&lt;static&gt; &nbsp;</td>
  229. <td class="nameDescription">
  230. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.addEventListener">addEventListener</a></b>(element, action, listener, useCapture)
  231. </div>
  232. <div class="description">Add and event listener.</div>
  233. </td>
  234. </tr>
  235. <tr>
  236. <td class="attributes">&nbsp;</td>
  237. <td class="nameDescription">
  238. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#addItem">addItem</a></b>(itemData, preventRender)
  239. </div>
  240. <div class="description">Add a new item.</div>
  241. </td>
  242. </tr>
  243. <tr>
  244. <td class="attributes">&nbsp;</td>
  245. <td class="nameDescription">
  246. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#addItems">addItems</a></b>(itemsData, preventRender)
  247. </div>
  248. <div class="description">Add new items.</div>
  249. </td>
  250. </tr>
  251. <tr>
  252. <td class="attributes">&nbsp;</td>
  253. <td class="nameDescription">
  254. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#addItemType">addItemType</a></b>(typeName, typeFactory)
  255. </div>
  256. <div class="description">Add new type of items</div>
  257. </td>
  258. </tr>
  259. <tr>
  260. <td class="attributes">&nbsp;</td>
  261. <td class="nameDescription">
  262. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#applyRange">applyRange</a></b>(start, end, zoomAroundDate)
  263. </div>
  264. <div class="description">Apply a visible range.</div>
  265. </td>
  266. </tr>
  267. <tr>
  268. <td class="attributes">&nbsp;</td>
  269. <td class="nameDescription">
  270. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#cancelAdd">cancelAdd</a></b>()
  271. </div>
  272. <div class="description">Cancel creation of a new item
  273. This method can be called insed an event listener which catches the "new"
  274. event.</div>
  275. </td>
  276. </tr>
  277. <tr>
  278. <td class="attributes">&nbsp;</td>
  279. <td class="nameDescription">
  280. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#cancelChange">cancelChange</a></b>()
  281. </div>
  282. <div class="description">Cancel a change item
  283. This method can be called insed an event listener which catches the "change"
  284. event.</div>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td class="attributes">&nbsp;</td>
  289. <td class="nameDescription">
  290. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#cancelDelete">cancelDelete</a></b>()
  291. </div>
  292. <div class="description">Cancel deletion of an item
  293. This method can be called insed an event listener which catches the "delete"
  294. event.</div>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td class="attributes">&nbsp;</td>
  299. <td class="nameDescription">
  300. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#changeItem">changeItem</a></b>(index, itemData, preventRender)
  301. </div>
  302. <div class="description">Edit an item</div>
  303. </td>
  304. </tr>
  305. <tr>
  306. <td class="attributes">&nbsp;</td>
  307. <td class="nameDescription">
  308. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#checkResize">checkResize</a></b>()
  309. </div>
  310. <div class="description">Check if the timeline is resized, and if so, redraw the timeline.</div>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td class="attributes">&nbsp;</td>
  315. <td class="nameDescription">
  316. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#clearItems">clearItems</a></b>()
  317. </div>
  318. <div class="description">This method clears the (internal) array this.items in a safe way: neatly
  319. cleaning up the DOM, and accompanying arrays this.renderedItems and
  320. the created clusters.</div>
  321. </td>
  322. </tr>
  323. <tr>
  324. <td class="attributes">&lt;static&gt; &nbsp;</td>
  325. <td class="nameDescription">
  326. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.clone">clone</a></b>(object)
  327. </div>
  328. <div class="description">Shallow clone an object</div>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td class="attributes">&nbsp;</td>
  333. <td class="nameDescription">
  334. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#clusterItems">clusterItems</a></b>()
  335. </div>
  336. <div class="description">Cluster the events</div>
  337. </td>
  338. </tr>
  339. <tr>
  340. <td class="attributes">&nbsp;</td>
  341. <td class="nameDescription">
  342. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#collision">collision</a></b>(item1, item2, margin)
  343. </div>
  344. <div class="description">Test if the two provided items collide
  345. The items must have parameters left, right, top, and bottom.</div>
  346. </td>
  347. </tr>
  348. <tr>
  349. <td class="attributes">&nbsp;</td>
  350. <td class="nameDescription">
  351. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#confirmDeleteItem">confirmDeleteItem</a></b>(index)
  352. </div>
  353. <div class="description">Delete an item after a confirmation.</div>
  354. </td>
  355. </tr>
  356. <tr>
  357. <td class="attributes">&nbsp;</td>
  358. <td class="nameDescription">
  359. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#createItem">createItem</a></b>(itemData)
  360. </div>
  361. <div class="description">Create an item object, containing all needed parameters</div>
  362. </td>
  363. </tr>
  364. <tr>
  365. <td class="attributes">&nbsp;</td>
  366. <td class="nameDescription">
  367. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#deleteAllItems">deleteAllItems</a></b>()
  368. </div>
  369. <div class="description">Delete all items</div>
  370. </td>
  371. </tr>
  372. <tr>
  373. <td class="attributes">&nbsp;</td>
  374. <td class="nameDescription">
  375. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#deleteGroups">deleteGroups</a></b>()
  376. </div>
  377. <div class="description">Delete all groups</div>
  378. </td>
  379. </tr>
  380. <tr>
  381. <td class="attributes">&nbsp;</td>
  382. <td class="nameDescription">
  383. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#deleteItem">deleteItem</a></b>(index, preventRender)
  384. </div>
  385. <div class="description">Delete an item</div>
  386. </td>
  387. </tr>
  388. <tr>
  389. <td class="attributes">&nbsp;</td>
  390. <td class="nameDescription">
  391. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#draw">draw</a></b>(data, options)
  392. </div>
  393. <div class="description">Main drawing logic.</div>
  394. </td>
  395. </tr>
  396. <tr>
  397. <td class="attributes">&nbsp;</td>
  398. <td class="nameDescription">
  399. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#filterItems">filterItems</a></b>()
  400. </div>
  401. <div class="description">Filter the visible events</div>
  402. </td>
  403. </tr>
  404. <tr>
  405. <td class="attributes">&nbsp;</td>
  406. <td class="nameDescription">
  407. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#finalItemsPosition">finalItemsPosition</a></b>(items, groupBase, group)
  408. </div>
  409. <div class="description"></div>
  410. </td>
  411. </tr>
  412. <tr>
  413. <td class="attributes">&lt;static&gt; &nbsp;</td>
  414. <td class="nameDescription">
  415. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.getAbsoluteLeft">getAbsoluteLeft</a></b>(elem)
  416. </div>
  417. <div class="description">Retrieve the absolute left value of a DOM element</div>
  418. </td>
  419. </tr>
  420. <tr>
  421. <td class="attributes">&lt;static&gt; &nbsp;</td>
  422. <td class="nameDescription">
  423. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.getAbsoluteTop">getAbsoluteTop</a></b>(elem)
  424. </div>
  425. <div class="description">Retrieve the absolute top value of a DOM element</div>
  426. </td>
  427. </tr>
  428. <tr>
  429. <td class="attributes">&nbsp;</td>
  430. <td class="nameDescription">
  431. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getCluster">getCluster</a></b>(index)
  432. </div>
  433. <div class="description">Retrieve the properties of a cluster.</div>
  434. </td>
  435. </tr>
  436. <tr>
  437. <td class="attributes">&nbsp;</td>
  438. <td class="nameDescription">
  439. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getClusterIndex">getClusterIndex</a></b>(element)
  440. </div>
  441. <div class="description">Find the cluster index from a given HTML element
  442. If no cluster index is found, undefined is returned</div>
  443. </td>
  444. </tr>
  445. <tr>
  446. <td class="attributes">&nbsp;</td>
  447. <td class="nameDescription">
  448. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getCurrentTime">getCurrentTime</a></b>()
  449. </div>
  450. <div class="description">Get current time.</div>
  451. </td>
  452. </tr>
  453. <tr>
  454. <td class="attributes">&nbsp;</td>
  455. <td class="nameDescription">
  456. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getCustomTime">getCustomTime</a></b>()
  457. </div>
  458. <div class="description">Retrieve the current custom time.</div>
  459. </td>
  460. </tr>
  461. <tr>
  462. <td class="attributes">&nbsp;</td>
  463. <td class="nameDescription">
  464. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getData">getData</a></b>()
  465. </div>
  466. <div class="description">Return the original data table.</div>
  467. </td>
  468. </tr>
  469. <tr>
  470. <td class="attributes">&nbsp;</td>
  471. <td class="nameDescription">
  472. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getDataRange">getDataRange</a></b>(withMargin)
  473. </div>
  474. <div class="description">Get the date range of the items.</div>
  475. </td>
  476. </tr>
  477. <tr>
  478. <td class="attributes">&nbsp;</td>
  479. <td class="nameDescription">
  480. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getGroup">getGroup</a></b>(groupName)
  481. </div>
  482. <div class="description">Get a group by the group name.</div>
  483. </td>
  484. </tr>
  485. <tr>
  486. <td class="attributes">&nbsp;</td>
  487. <td class="nameDescription">
  488. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getGroupFromHeight">getGroupFromHeight</a></b>(height)
  489. </div>
  490. <div class="description">Find the group from a given height in the timeline</div>
  491. </td>
  492. </tr>
  493. <tr>
  494. <td class="attributes">&nbsp;</td>
  495. <td class="nameDescription">
  496. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getGroupName">getGroupName</a></b>(groupObj)
  497. </div>
  498. <div class="description">Get the group name from a group object.</div>
  499. </td>
  500. </tr>
  501. <tr>
  502. <td class="attributes">&nbsp;</td>
  503. <td class="nameDescription">
  504. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getItem">getItem</a></b>(index)
  505. </div>
  506. <div class="description">Retrieve the properties of an item.</div>
  507. </td>
  508. </tr>
  509. <tr>
  510. <td class="attributes">&nbsp;</td>
  511. <td class="nameDescription">
  512. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getItemIndex">getItemIndex</a></b>(element)
  513. </div>
  514. <div class="description">Find the item index from a given HTML element
  515. If no item index is found, undefined is returned</div>
  516. </td>
  517. </tr>
  518. <tr>
  519. <td class="attributes">&nbsp;</td>
  520. <td class="nameDescription">
  521. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getItemsByGroup">getItemsByGroup</a></b>(items)
  522. </div>
  523. <div class="description"></div>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td class="attributes">&nbsp;</td>
  528. <td class="nameDescription">
  529. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getOptions">getOptions</a></b>()
  530. </div>
  531. <div class="description">Get options for the timeline.</div>
  532. </td>
  533. </tr>
  534. <tr>
  535. <td class="attributes">&lt;static&gt; &nbsp;</td>
  536. <td class="nameDescription">
  537. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.getPageX">getPageX</a></b>(event)
  538. </div>
  539. <div class="description">Get the absolute, horizontal mouse position from an event.</div>
  540. </td>
  541. </tr>
  542. <tr>
  543. <td class="attributes">&lt;static&gt; &nbsp;</td>
  544. <td class="nameDescription">
  545. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.getPageY">getPageY</a></b>(event)
  546. </div>
  547. <div class="description">Get the absolute, vertical mouse position from an event.</div>
  548. </td>
  549. </tr>
  550. <tr>
  551. <td class="attributes">&nbsp;</td>
  552. <td class="nameDescription">
  553. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getSelection">getSelection</a></b>()
  554. </div>
  555. <div class="description">Retrieve the currently selected event</div>
  556. </td>
  557. </tr>
  558. <tr>
  559. <td class="attributes">&lt;static&gt; &nbsp;</td>
  560. <td class="nameDescription">
  561. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.getTarget">getTarget</a></b>(event)
  562. </div>
  563. <div class="description">Get HTML element which is the target of the event</div>
  564. </td>
  565. </tr>
  566. <tr>
  567. <td class="attributes">&nbsp;</td>
  568. <td class="nameDescription">
  569. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getVisibleChartRange">getVisibleChartRange</a></b>()
  570. </div>
  571. <div class="description">Retrieve the current visible range in the timeline.</div>
  572. </td>
  573. </tr>
  574. <tr>
  575. <td class="attributes">&nbsp;</td>
  576. <td class="nameDescription">
  577. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#getVisibleItems">getVisibleItems</a></b>(start, end)
  578. </div>
  579. <div class="description">Find all elements within the start and end range
  580. If no element is found, returns an empty array</div>
  581. </td>
  582. </tr>
  583. <tr>
  584. <td class="attributes">&nbsp;</td>
  585. <td class="nameDescription">
  586. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#initialItemsPosition">initialItemsPosition</a></b>(items, groupBase)
  587. </div>
  588. <div class="description"></div>
  589. </td>
  590. </tr>
  591. <tr>
  592. <td class="attributes">&lt;static&gt; &nbsp;</td>
  593. <td class="nameDescription">
  594. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.isArray">isArray</a></b>(obj)
  595. </div>
  596. <div class="description">Check if given object is a Javascript Array</div>
  597. </td>
  598. </tr>
  599. <tr>
  600. <td class="attributes">&nbsp;</td>
  601. <td class="nameDescription">
  602. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#isEditable">isEditable</a></b>(item)
  603. </div>
  604. <div class="description">Check whether a given item is editable</div>
  605. </td>
  606. </tr>
  607. <tr>
  608. <td class="attributes">&nbsp;</td>
  609. <td class="nameDescription">
  610. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#isSelected">isSelected</a></b>(index)
  611. </div>
  612. <div class="description">Check if an item is currently selected</div>
  613. </td>
  614. </tr>
  615. <tr>
  616. <td class="attributes">&lt;static&gt; &nbsp;</td>
  617. <td class="nameDescription">
  618. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.mapColumnIds">mapColumnIds</a></b>(dataTable)
  619. </div>
  620. <div class="description">Retrieve a map with the column indexes of the columns by column name.</div>
  621. </td>
  622. </tr>
  623. <tr>
  624. <td class="attributes">&nbsp;</td>
  625. <td class="nameDescription">
  626. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#move">move</a></b>(moveFactor)
  627. </div>
  628. <div class="description">Move the timeline the given movefactor to the left or right.</div>
  629. </td>
  630. </tr>
  631. <tr>
  632. <td class="attributes">&nbsp;</td>
  633. <td class="nameDescription">
  634. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onDblClick">onDblClick</a></b>(event)
  635. </div>
  636. <div class="description">Double click event occurred for an item</div>
  637. </td>
  638. </tr>
  639. <tr>
  640. <td class="attributes">&nbsp;</td>
  641. <td class="nameDescription">
  642. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onMouseDown">onMouseDown</a></b>(event)
  643. </div>
  644. <div class="description">Start a moving operation inside the provided parent element</div>
  645. </td>
  646. </tr>
  647. <tr>
  648. <td class="attributes">&nbsp;</td>
  649. <td class="nameDescription">
  650. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onMouseMove">onMouseMove</a></b>(event)
  651. </div>
  652. <div class="description">Perform moving operating.</div>
  653. </td>
  654. </tr>
  655. <tr>
  656. <td class="attributes">&nbsp;</td>
  657. <td class="nameDescription">
  658. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onMouseUp">onMouseUp</a></b>(event)
  659. </div>
  660. <div class="description">Stop moving operating.</div>
  661. </td>
  662. </tr>
  663. <tr>
  664. <td class="attributes">&nbsp;</td>
  665. <td class="nameDescription">
  666. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onMouseWheel">onMouseWheel</a></b>(event)
  667. </div>
  668. <div class="description">Event handler for mouse wheel event, used to zoom the timeline
  669. Code from http://adomas.org/javascript-mouse-wheel/</div>
  670. </td>
  671. </tr>
  672. <tr>
  673. <td class="attributes">&nbsp;</td>
  674. <td class="nameDescription">
  675. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onTouchEnd">onTouchEnd</a></b>(event)
  676. </div>
  677. <div class="description">Event handler for touchend event on mobile devices</div>
  678. </td>
  679. </tr>
  680. <tr>
  681. <td class="attributes">&nbsp;</td>
  682. <td class="nameDescription">
  683. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onTouchMove">onTouchMove</a></b>(event)
  684. </div>
  685. <div class="description">Event handler for touchmove event on mobile devices</div>
  686. </td>
  687. </tr>
  688. <tr>
  689. <td class="attributes">&nbsp;</td>
  690. <td class="nameDescription">
  691. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#onTouchStart">onTouchStart</a></b>(event)
  692. </div>
  693. <div class="description">Event handler for touchstart event on mobile devices</div>
  694. </td>
  695. </tr>
  696. <tr>
  697. <td class="attributes">&lt;static&gt; &nbsp;</td>
  698. <td class="nameDescription">
  699. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.parseJSONDate">parseJSONDate</a></b>(date)
  700. </div>
  701. <div class="description">parse a JSON date</div>
  702. </td>
  703. </tr>
  704. <tr>
  705. <td class="attributes">&lt;static&gt; &nbsp;</td>
  706. <td class="nameDescription">
  707. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.preventDefault">preventDefault</a></b>(event)
  708. </div>
  709. <div class="description">Cancels the event if it is cancelable, without stopping further propagation of the event.</div>
  710. </td>
  711. </tr>
  712. <tr>
  713. <td class="attributes">&nbsp;</td>
  714. <td class="nameDescription">
  715. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#recalcConversion">recalcConversion</a></b>()
  716. </div>
  717. <div class="description">Calculate the factor and offset to convert a position on screen to the
  718. corresponding date and vice versa.</div>
  719. </td>
  720. </tr>
  721. <tr>
  722. <td class="attributes">&nbsp;</td>
  723. <td class="nameDescription">
  724. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#recalcItems">recalcItems</a></b>()
  725. </div>
  726. <div class="description">Recalculate item properties:
  727. - the height of each group.</div>
  728. </td>
  729. </tr>
  730. <tr>
  731. <td class="attributes">&nbsp;</td>
  732. <td class="nameDescription">
  733. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#redraw">redraw</a></b>()
  734. </div>
  735. <div class="description">Redraw the timeline
  736. Reloads the (linked) data table and redraws the timeline when resized.</div>
  737. </td>
  738. </tr>
  739. <tr>
  740. <td class="attributes">&nbsp;</td>
  741. <td class="nameDescription">
  742. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#reflowAxis">reflowAxis</a></b>()
  743. </div>
  744. <div class="description">Reflow the timeline axis.</div>
  745. </td>
  746. </tr>
  747. <tr>
  748. <td class="attributes">&nbsp;</td>
  749. <td class="nameDescription">
  750. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#reflowFrame">reflowFrame</a></b>()
  751. </div>
  752. <div class="description">Reflow the timeline frame</div>
  753. </td>
  754. </tr>
  755. <tr>
  756. <td class="attributes">&nbsp;</td>
  757. <td class="nameDescription">
  758. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#reflowGroups">reflowGroups</a></b>()
  759. </div>
  760. <div class="description">Reflow the size of the groups</div>
  761. </td>
  762. </tr>
  763. <tr>
  764. <td class="attributes">&nbsp;</td>
  765. <td class="nameDescription">
  766. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#reflowItems">reflowItems</a></b>()
  767. </div>
  768. <div class="description">Reflow all items, retrieve their actual size</div>
  769. </td>
  770. </tr>
  771. <tr>
  772. <td class="attributes">&lt;static&gt; &nbsp;</td>
  773. <td class="nameDescription">
  774. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.removeClassName">removeClassName</a></b>(elem, className)
  775. </div>
  776. <div class="description">Removes one or more className's from the given elements style</div>
  777. </td>
  778. </tr>
  779. <tr>
  780. <td class="attributes">&lt;static&gt; &nbsp;</td>
  781. <td class="nameDescription">
  782. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.removeEventListener">removeEventListener</a></b>(element, action, listener, useCapture)
  783. </div>
  784. <div class="description">Remove an event listener from an element</div>
  785. </td>
  786. </tr>
  787. <tr>
  788. <td class="attributes">&nbsp;</td>
  789. <td class="nameDescription">
  790. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#render">render</a></b>(options)
  791. </div>
  792. <div class="description">Re-render (reflow and repaint) all components of the Timeline: frame, axis,
  793. items, .</div>
  794. </td>
  795. </tr>
  796. <tr>
  797. <td class="attributes">&nbsp;</td>
  798. <td class="nameDescription">
  799. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaint">repaint</a></b>()
  800. </div>
  801. <div class="description">Repaint all components of the Timeline</div>
  802. </td>
  803. </tr>
  804. <tr>
  805. <td class="attributes">&nbsp;</td>
  806. <td class="nameDescription">
  807. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxis">repaintAxis</a></b>()
  808. </div>
  809. <div class="description">Redraw the timeline axis with minor and major labels</div>
  810. </td>
  811. </tr>
  812. <tr>
  813. <td class="attributes">&nbsp;</td>
  814. <td class="nameDescription">
  815. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisCharacters">repaintAxisCharacters</a></b>()
  816. </div>
  817. <div class="description">Create characters used to determine the size of text on the axis</div>
  818. </td>
  819. </tr>
  820. <tr>
  821. <td class="attributes">&nbsp;</td>
  822. <td class="nameDescription">
  823. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisEndOverwriting">repaintAxisEndOverwriting</a></b>()
  824. </div>
  825. <div class="description">End of overwriting HTML DOM elements of the axis.</div>
  826. </td>
  827. </tr>
  828. <tr>
  829. <td class="attributes">&nbsp;</td>
  830. <td class="nameDescription">
  831. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisHorizontal">repaintAxisHorizontal</a></b>()
  832. </div>
  833. <div class="description">Repaint the horizontal line and background of the axis</div>
  834. </td>
  835. </tr>
  836. <tr>
  837. <td class="attributes">&nbsp;</td>
  838. <td class="nameDescription">
  839. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisMajorLine">repaintAxisMajorLine</a></b>(x)
  840. </div>
  841. <div class="description">Create a Major line for the axis at position x</div>
  842. </td>
  843. </tr>
  844. <tr>
  845. <td class="attributes">&nbsp;</td>
  846. <td class="nameDescription">
  847. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisMajorText">repaintAxisMajorText</a></b>(x, text)
  848. </div>
  849. <div class="description">Create a Major label for the axis at position x</div>
  850. </td>
  851. </tr>
  852. <tr>
  853. <td class="attributes">&nbsp;</td>
  854. <td class="nameDescription">
  855. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisMinorLine">repaintAxisMinorLine</a></b>(x)
  856. </div>
  857. <div class="description">Create a minor line for the axis at position x</div>
  858. </td>
  859. </tr>
  860. <tr>
  861. <td class="attributes">&nbsp;</td>
  862. <td class="nameDescription">
  863. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisMinorText">repaintAxisMinorText</a></b>(x, text)
  864. </div>
  865. <div class="description">Create a minor label for the axis at position x</div>
  866. </td>
  867. </tr>
  868. <tr>
  869. <td class="attributes">&nbsp;</td>
  870. <td class="nameDescription">
  871. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintAxisStartOverwriting">repaintAxisStartOverwriting</a></b>()
  872. </div>
  873. <div class="description">Initialize redraw of the axis.</div>
  874. </td>
  875. </tr>
  876. <tr>
  877. <td class="attributes">&nbsp;</td>
  878. <td class="nameDescription">
  879. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintCurrentTime">repaintCurrentTime</a></b>()
  880. </div>
  881. <div class="description">Redraw the current time bar</div>
  882. </td>
  883. </tr>
  884. <tr>
  885. <td class="attributes">&nbsp;</td>
  886. <td class="nameDescription">
  887. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintCustomTime">repaintCustomTime</a></b>()
  888. </div>
  889. <div class="description">Redraw the custom time bar</div>
  890. </td>
  891. </tr>
  892. <tr>
  893. <td class="attributes">&nbsp;</td>
  894. <td class="nameDescription">
  895. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintDeleteButton">repaintDeleteButton</a></b>()
  896. </div>
  897. <div class="description">Redraw the delete button, on the top right of the currently selected item
  898. if there is no item selected, the button is hidden.</div>
  899. </td>
  900. </tr>
  901. <tr>
  902. <td class="attributes">&nbsp;</td>
  903. <td class="nameDescription">
  904. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintDragAreas">repaintDragAreas</a></b>()
  905. </div>
  906. <div class="description">Redraw the drag areas.</div>
  907. </td>
  908. </tr>
  909. <tr>
  910. <td class="attributes">&nbsp;</td>
  911. <td class="nameDescription">
  912. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintFrame">repaintFrame</a></b>()
  913. </div>
  914. <div class="description">repaint the Timeline frame</div>
  915. </td>
  916. </tr>
  917. <tr>
  918. <td class="attributes">&nbsp;</td>
  919. <td class="nameDescription">
  920. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintGroups">repaintGroups</a></b>()
  921. </div>
  922. <div class="description">Redraw the group labels</div>
  923. </td>
  924. </tr>
  925. <tr>
  926. <td class="attributes">&nbsp;</td>
  927. <td class="nameDescription">
  928. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintItems">repaintItems</a></b>()
  929. </div>
  930. <div class="description">Repaint all items</div>
  931. </td>
  932. </tr>
  933. <tr>
  934. <td class="attributes">&nbsp;</td>
  935. <td class="nameDescription">
  936. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#repaintNavigation">repaintNavigation</a></b>()
  937. </div>
  938. <div class="description">Create the navigation buttons for zooming and moving</div>
  939. </td>
  940. </tr>
  941. <tr>
  942. <td class="attributes">&nbsp;</td>
  943. <td class="nameDescription">
  944. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#screenToTime">screenToTime</a></b>(x)
  945. </div>
  946. <div class="description">Convert a position on screen (pixels) to a datetime
  947. Before this method can be used, the method calcConversionFactor must be
  948. executed once.</div>
  949. </td>
  950. </tr>
  951. <tr>
  952. <td class="attributes">&nbsp;</td>
  953. <td class="nameDescription">
  954. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#selectCluster">selectCluster</a></b>(index)
  955. </div>
  956. <div class="description">Select an cluster by its index</div>
  957. </td>
  958. </tr>
  959. <tr>
  960. <td class="attributes">&nbsp;</td>
  961. <td class="nameDescription">
  962. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#selectItem">selectItem</a></b>(index)
  963. </div>
  964. <div class="description">Select an item by its index</div>
  965. </td>
  966. </tr>
  967. <tr>
  968. <td class="attributes">&nbsp;</td>
  969. <td class="nameDescription">
  970. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setAutoScale">setAutoScale</a></b>(enable)
  971. </div>
  972. <div class="description">Enable or disable autoscaling</div>
  973. </td>
  974. </tr>
  975. <tr>
  976. <td class="attributes">&nbsp;</td>
  977. <td class="nameDescription">
  978. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setCurrentTime">setCurrentTime</a></b>(time)
  979. </div>
  980. <div class="description">Set current time.</div>
  981. </td>
  982. </tr>
  983. <tr>
  984. <td class="attributes">&nbsp;</td>
  985. <td class="nameDescription">
  986. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setCustomTime">setCustomTime</a></b>(time)
  987. </div>
  988. <div class="description">Set custom time.</div>
  989. </td>
  990. </tr>
  991. <tr>
  992. <td class="attributes">&nbsp;</td>
  993. <td class="nameDescription">
  994. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setData">setData</a></b>(data)
  995. </div>
  996. <div class="description">Set data for the timeline</div>
  997. </td>
  998. </tr>
  999. <tr>
  1000. <td class="attributes">&nbsp;</td>
  1001. <td class="nameDescription">
  1002. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setOptions">setOptions</a></b>(options)
  1003. </div>
  1004. <div class="description">Set options for the timeline.</div>
  1005. </td>
  1006. </tr>
  1007. <tr>
  1008. <td class="attributes">&nbsp;</td>
  1009. <td class="nameDescription">
  1010. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setScale">setScale</a></b>(scale, step)
  1011. </div>
  1012. <div class="description">Set a custom scale.</div>
  1013. </td>
  1014. </tr>
  1015. <tr>
  1016. <td class="attributes">&nbsp;</td>
  1017. <td class="nameDescription">
  1018. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setSelection">setSelection</a></b>(selection)
  1019. </div>
  1020. <div class="description">Select an event.</div>
  1021. </td>
  1022. </tr>
  1023. <tr>
  1024. <td class="attributes">&nbsp;</td>
  1025. <td class="nameDescription">
  1026. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setSize">setSize</a></b>(width, height)
  1027. </div>
  1028. <div class="description">Set a new size for the timeline</div>
  1029. </td>
  1030. </tr>
  1031. <tr>
  1032. <td class="attributes">&nbsp;</td>
  1033. <td class="nameDescription">
  1034. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setVisibleChartRange">setVisibleChartRange</a></b>(start, end, redraw)
  1035. </div>
  1036. <div class="description">Set a new value for the visible range int the timeline.</div>
  1037. </td>
  1038. </tr>
  1039. <tr>
  1040. <td class="attributes">&nbsp;</td>
  1041. <td class="nameDescription">
  1042. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setVisibleChartRangeAuto">setVisibleChartRangeAuto</a></b>()
  1043. </div>
  1044. <div class="description">Change the visible chart range such that all items become visible</div>
  1045. </td>
  1046. </tr>
  1047. <tr>
  1048. <td class="attributes">&nbsp;</td>
  1049. <td class="nameDescription">
  1050. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#setVisibleChartRangeNow">setVisibleChartRangeNow</a></b>()
  1051. </div>
  1052. <div class="description">Adjust the visible range such that the current time is located in the center
  1053. of the timeline</div>
  1054. </td>
  1055. </tr>
  1056. <tr>
  1057. <td class="attributes">&nbsp;</td>
  1058. <td class="nameDescription">
  1059. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackCalculateFinal">stackCalculateFinal</a></b>(items)
  1060. </div>
  1061. <div class="description">Adjust vertical positions of the events such that they don't overlap each
  1062. other.</div>
  1063. </td>
  1064. </tr>
  1065. <tr>
  1066. <td class="attributes">&nbsp;</td>
  1067. <td class="nameDescription">
  1068. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackCancelAnimation">stackCancelAnimation</a></b>()
  1069. </div>
  1070. <div class="description">Cancel any running animation</div>
  1071. </td>
  1072. </tr>
  1073. <tr>
  1074. <td class="attributes">&nbsp;</td>
  1075. <td class="nameDescription">
  1076. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackItems">stackItems</a></b>(animate)
  1077. </div>
  1078. <div class="description">Stack the items such that they don't overlap.</div>
  1079. </td>
  1080. </tr>
  1081. <tr>
  1082. <td class="attributes">&nbsp;</td>
  1083. <td class="nameDescription">
  1084. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackItemsCheckOverlap">stackItemsCheckOverlap</a></b>(items, itemIndex, itemStart, itemEnd)
  1085. </div>
  1086. <div class="description">Check if the destiny position of given item overlaps with any
  1087. of the other items from index itemStart to itemEnd.</div>
  1088. </td>
  1089. </tr>
  1090. <tr>
  1091. <td class="attributes">&nbsp;</td>
  1092. <td class="nameDescription">
  1093. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackMoveOneStep">stackMoveOneStep</a></b>(currentItems, finalItems)
  1094. </div>
  1095. <div class="description">Move the events one step in the direction of their final positions</div>
  1096. </td>
  1097. </tr>
  1098. <tr>
  1099. <td class="attributes">&nbsp;</td>
  1100. <td class="nameDescription">
  1101. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackMoveToFinal">stackMoveToFinal</a></b>(currentItems, finalItems)
  1102. </div>
  1103. <div class="description">Move the events from their current position to the final position</div>
  1104. </td>
  1105. </tr>
  1106. <tr>
  1107. <td class="attributes">&nbsp;</td>
  1108. <td class="nameDescription">
  1109. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#stackOrder">stackOrder</a></b>(items)
  1110. </div>
  1111. <div class="description">Order the items in the array this.items.</div>
  1112. </td>
  1113. </tr>
  1114. <tr>
  1115. <td class="attributes">&lt;static&gt; &nbsp;</td>
  1116. <td class="nameDescription">
  1117. <div class="fixedFont">links.Timeline.<b><a href="../symbols/links.Timeline.html#.stopPropagation">stopPropagation</a></b>(event)
  1118. </div>
  1119. <div class="description">Stop event propagation</div>
  1120. </td>
  1121. </tr>
  1122. <tr>
  1123. <td class="attributes">&nbsp;</td>
  1124. <td class="nameDescription">
  1125. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#timeToScreen">timeToScreen</a></b>(time)
  1126. </div>
  1127. <div class="description">Convert a datetime (Date object) into a position on the screen
  1128. Before this method can be used, the method calcConversionFactor must be
  1129. executed once.</div>
  1130. </td>
  1131. </tr>
  1132. <tr>
  1133. <td class="attributes">&nbsp;</td>
  1134. <td class="nameDescription">
  1135. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#trigger">trigger</a></b>(event)
  1136. </div>
  1137. <div class="description">fire an event</div>
  1138. </td>
  1139. </tr>
  1140. <tr>
  1141. <td class="attributes">&nbsp;</td>
  1142. <td class="nameDescription">
  1143. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#unselectItem">unselectItem</a></b>()
  1144. </div>
  1145. <div class="description">Unselect the currently selected event (if any)</div>
  1146. </td>
  1147. </tr>
  1148. <tr>
  1149. <td class="attributes">&nbsp;</td>
  1150. <td class="nameDescription">
  1151. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#updateData">updateData</a></b>(index, values)
  1152. </div>
  1153. <div class="description">Update the original data with changed start, end or group.</div>
  1154. </td>
  1155. </tr>
  1156. <tr>
  1157. <td class="attributes">&nbsp;</td>
  1158. <td class="nameDescription">
  1159. <div class="fixedFont"><b><a href="../symbols/links.Timeline.html#zoom">zoom</a></b>(zoomFactor, zoomAroundDate)
  1160. </div>
  1161. <div class="description">Zoom the timeline the given zoomfactor in or out.</div>
  1162. </td>
  1163. </tr>
  1164. </tbody>
  1165. </table>
  1166. <!-- ============================== events summary ======================== -->
  1167. <!-- ============================== constructor details ==================== -->
  1168. <div class="details"><a name="constructor"> </a>
  1169. <div class="sectionTitle">
  1170. Class Detail
  1171. </div>
  1172. <div class="fixedFont">
  1173. <b>links.Timeline</b>(container, options)
  1174. </div>
  1175. <div class="description">
  1176. </div>
  1177. <dl class="detailList">
  1178. <dt class="heading">Parameters:</dt>
  1179. <dt>
  1180. <span class="light fixedFont">{Element}</span> <b>container</b>
  1181. </dt>
  1182. <dd>The DOM element in which the Timeline will
  1183. be created. Normally a div element.</dd>
  1184. <dt>
  1185. <span class="light fixedFont">{Object}</span> <b>options</b>
  1186. </dt>
  1187. <dd>A name/value map containing settings for the
  1188. timeline. Optional.</dd>
  1189. </dl>
  1190. </div>
  1191. <!-- ============================== field details ========================== -->
  1192. <!-- ============================== method details ========================= -->
  1193. <div class="sectionTitle">
  1194. Method Detail
  1195. </div>
  1196. <a name=".addClassName"> </a>
  1197. <div class="fixedFont">&lt;static&gt;
  1198. <span class="light">links.Timeline.</span><b>addClassName</b>(elem, className)
  1199. </div>
  1200. <div class="description">
  1201. Adds one or more className's to the given elements style
  1202. </div>
  1203. <dl class="detailList">
  1204. <dt class="heading">Parameters:</dt>
  1205. <dt>
  1206. <span class="light fixedFont">{Element}</span> <b>elem</b>
  1207. </dt>
  1208. <dd></dd>
  1209. <dt>
  1210. <span class="light fixedFont">{String}</span> <b>className</b>
  1211. </dt>
  1212. <dd></dd>
  1213. </dl>
  1214. <hr />
  1215. <a name=".addEventListener"> </a>
  1216. <div class="fixedFont">&lt;static&gt;
  1217. <span class="light">links.Timeline.</span><b>addEventListener</b>(element, action, listener, useCapture)
  1218. </div>
  1219. <div class="description">
  1220. Add and event listener. Works for all browsers
  1221. </div>
  1222. <dl class="detailList">
  1223. <dt class="heading">Parameters:</dt>
  1224. <dt>
  1225. <span class="light fixedFont">{Element}</span> <b>element</b>
  1226. </dt>
  1227. <dd>An html element</dd>
  1228. <dt>
  1229. <span class="light fixedFont">{string}</span> <b>action</b>
  1230. </dt>
  1231. <dd>The action, for example "click",
  1232. without the prefix "on"</dd>
  1233. <dt>
  1234. <span class="light fixedFont">{function}</span> <b>listener</b>
  1235. </dt>
  1236. <dd>The callback function to be executed</dd>
  1237. <dt>
  1238. <span class="light fixedFont">{boolean}</span> <b>useCapture</b>
  1239. </dt>
  1240. <dd></dd>
  1241. </dl>
  1242. <hr />
  1243. <a name="addItem"> </a>
  1244. <div class="fixedFont">
  1245. <b>addItem</b>(itemData, preventRender)
  1246. </div>
  1247. <div class="description">
  1248. Add a new item.
  1249. </div>
  1250. <dl class="detailList">
  1251. <dt class="heading">Parameters:</dt>
  1252. <dt>
  1253. <span class="light fixedFont">{Object}</span> <b>itemData</b>
  1254. </dt>
  1255. <dd>Object containing item properties:<br>
  1256. {Date} start (required),
  1257. {Date} end (optional),
  1258. {String} content (required),
  1259. {String} group (optional)
  1260. {String} className (optional)
  1261. {Boolean} editable (optional)
  1262. {String} type (optional)</dd>
  1263. <dt>
  1264. <span class="light fixedFont">{boolean}</span> <b>preventRender</b>
  1265. <i>Optional, Default: false</i>
  1266. </dt>
  1267. <dd>Do not re-render timeline if true</dd>
  1268. </dl>
  1269. <hr />
  1270. <a name="addItems"> </a>
  1271. <div class="fixedFont">
  1272. <b>addItems</b>(itemsData, preventRender)
  1273. </div>
  1274. <div class="description">
  1275. Add new items.
  1276. </div>
  1277. <dl class="detailList">
  1278. <dt class="heading">Parameters:</dt>
  1279. <dt>
  1280. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>itemsData</b>
  1281. </dt>
  1282. <dd>An array containing Objects.
  1283. The objects must have the following parameters:
  1284. {Date} start,
  1285. {Date} end,
  1286. {String} content with text or HTML code,
  1287. {String} group (optional)
  1288. {String} className (optional)
  1289. {String} editable (optional)
  1290. {String} type (optional)</dd>
  1291. <dt>
  1292. <span class="light fixedFont">{boolean}</span> <b>preventRender</b>
  1293. <i>Optional, Default: false</i>
  1294. </dt>
  1295. <dd>Do not re-render timeline if true</dd>
  1296. </dl>
  1297. <hr />
  1298. <a name="addItemType"> </a>
  1299. <div class="fixedFont">
  1300. <b>addItemType</b>(typeName, typeFactory)
  1301. </div>
  1302. <div class="description">
  1303. Add new type of items
  1304. </div>
  1305. <dl class="detailList">
  1306. <dt class="heading">Parameters:</dt>
  1307. <dt>
  1308. <span class="light fixedFont">{String}</span> <b>typeName</b>
  1309. </dt>
  1310. <dd>Name of new type</dd>
  1311. <dt>
  1312. <span class="light fixedFont">{<a href="../symbols/links.Timeline.Item.html">links.Timeline.Item</a>}</span> <b>typeFactory</b>
  1313. </dt>
  1314. <dd>Constructor of items</dd>
  1315. </dl>
  1316. <hr />
  1317. <a name="applyRange"> </a>
  1318. <div class="fixedFont">
  1319. <b>applyRange</b>(start, end, zoomAroundDate)
  1320. </div>
  1321. <div class="description">
  1322. Apply a visible range. The range is limited to feasible maximum and minimum
  1323. range.
  1324. </div>
  1325. <dl class="detailList">
  1326. <dt class="heading">Parameters:</dt>
  1327. <dt>
  1328. <span class="light fixedFont">{Date}</span> <b>start</b>
  1329. </dt>
  1330. <dd></dd>
  1331. <dt>
  1332. <span class="light fixedFont">{Date}</span> <b>end</b>
  1333. </dt>
  1334. <dd></dd>
  1335. <dt>
  1336. <span class="light fixedFont">{Date}</span> <b>zoomAroundDate</b>
  1337. </dt>
  1338. <dd>Optional. Date around which will be zoomed.</dd>
  1339. </dl>
  1340. <hr />
  1341. <a name="cancelAdd"> </a>
  1342. <div class="fixedFont">
  1343. <b>cancelAdd</b>()
  1344. </div>
  1345. <div class="description">
  1346. Cancel creation of a new item
  1347. This method can be called insed an event listener which catches the "new"
  1348. event. Creation of the new the event will be undone.
  1349. </div>
  1350. <hr />
  1351. <a name="cancelChange"> </a>
  1352. <div class="fixedFont">
  1353. <b>cancelChange</b>()
  1354. </div>
  1355. <div class="description">
  1356. Cancel a change item
  1357. This method can be called insed an event listener which catches the "change"
  1358. event. The changed event position will be undone.
  1359. </div>
  1360. <hr />
  1361. <a name="cancelDelete"> </a>
  1362. <div class="fixedFont">
  1363. <b>cancelDelete</b>()
  1364. </div>
  1365. <div class="description">
  1366. Cancel deletion of an item
  1367. This method can be called insed an event listener which catches the "delete"
  1368. event. Deletion of the event will be undone.
  1369. </div>
  1370. <hr />
  1371. <a name="changeItem"> </a>
  1372. <div class="fixedFont">
  1373. <b>changeItem</b>(index, itemData, preventRender)
  1374. </div>
  1375. <div class="description">
  1376. Edit an item
  1377. </div>
  1378. <dl class="detailList">
  1379. <dt class="heading">Parameters:</dt>
  1380. <dt>
  1381. <span class="light fixedFont">{Number}</span> <b>index</b>
  1382. </dt>
  1383. <dd></dd>
  1384. <dt>
  1385. <span class="light fixedFont">{Object}</span> <b>itemData</b>
  1386. </dt>
  1387. <dd>Object containing item properties:<br>
  1388. {Date} start (required),
  1389. {Date} end (optional),
  1390. {String} content (required),
  1391. {String} group (optional)</dd>
  1392. <dt>
  1393. <span class="light fixedFont">{boolean}</span> <b>preventRender</b>
  1394. <i>Optional, Default: false</i>
  1395. </dt>
  1396. <dd>Do not re-render timeline if true</dd>
  1397. </dl>
  1398. <hr />
  1399. <a name="checkResize"> </a>
  1400. <div class="fixedFont">
  1401. <b>checkResize</b>()
  1402. </div>
  1403. <div class="description">
  1404. Check if the timeline is resized, and if so, redraw the timeline.
  1405. Useful when the webpage is resized.
  1406. </div>
  1407. <hr />
  1408. <a name="clearItems"> </a>
  1409. <div class="fixedFont">
  1410. <b>clearItems</b>()
  1411. </div>
  1412. <div class="description">
  1413. This method clears the (internal) array this.items in a safe way: neatly
  1414. cleaning up the DOM, and accompanying arrays this.renderedItems and
  1415. the created clusters.
  1416. </div>
  1417. <hr />
  1418. <a name=".clone"> </a>
  1419. <div class="fixedFont">&lt;static&gt;
  1420. <span class="light">{Object}</span>
  1421. <span class="light">links.Timeline.</span><b>clone</b>(object)
  1422. </div>
  1423. <div class="description">
  1424. Shallow clone an object
  1425. </div>
  1426. <dl class="detailList">
  1427. <dt class="heading">Parameters:</dt>
  1428. <dt>
  1429. <span class="light fixedFont">{Object}</span> <b>object</b>
  1430. </dt>
  1431. <dd></dd>
  1432. </dl>
  1433. <dl class="detailList">
  1434. <dt class="heading">Returns:</dt>
  1435. <dd><span class="light fixedFont">{Object}</span> clone</dd>
  1436. </dl>
  1437. <hr />
  1438. <a name="clusterItems"> </a>
  1439. <div class="fixedFont">
  1440. <b>clusterItems</b>()
  1441. </div>
  1442. <div class="description">
  1443. Cluster the events
  1444. </div>
  1445. <hr />
  1446. <a name="collision"> </a>
  1447. <div class="fixedFont">
  1448. <span class="light">{boolean}</span>
  1449. <b>collision</b>(item1, item2, margin)
  1450. </div>
  1451. <div class="description">
  1452. Test if the two provided items collide
  1453. The items must have parameters left, right, top, and bottom.
  1454. </div>
  1455. <dl class="detailList">
  1456. <dt class="heading">Parameters:</dt>
  1457. <dt>
  1458. <span class="light fixedFont">{Element}</span> <b>item1</b>
  1459. </dt>
  1460. <dd>The first item</dd>
  1461. <dt>
  1462. <span class="light fixedFont">{Element}</span> <b>item2</b>
  1463. </dt>
  1464. <dd>The second item</dd>
  1465. <dt>
  1466. <span class="light fixedFont">{Number}</span> <b>margin</b>
  1467. </dt>
  1468. <dd>A minimum required margin. Optional.
  1469. If margin is provided, the two items will be
  1470. marked colliding when they overlap or
  1471. when the margin between the two is smaller than
  1472. the requested margin.</dd>
  1473. </dl>
  1474. <dl class="detailList">
  1475. <dt class="heading">Returns:</dt>
  1476. <dd><span class="light fixedFont">{boolean}</span> true if item1 and item2 collide, else false</dd>
  1477. </dl>
  1478. <hr />
  1479. <a name="confirmDeleteItem"> </a>
  1480. <div class="fixedFont">
  1481. <b>confirmDeleteItem</b>(index)
  1482. </div>
  1483. <div class="description">
  1484. Delete an item after a confirmation.
  1485. The deletion can be cancelled by executing .cancelDelete() during the
  1486. triggered event 'delete'.
  1487. </div>
  1488. <dl class="detailList">
  1489. <dt class="heading">Parameters:</dt>
  1490. <dt>
  1491. <span class="light fixedFont">{int}</span> <b>index</b>
  1492. </dt>
  1493. <dd>Index of the item to be deleted</dd>
  1494. </dl>
  1495. <hr />
  1496. <a name="createItem"> </a>
  1497. <div class="fixedFont">
  1498. <span class="light">{Object}</span>
  1499. <b>createItem</b>(itemData)
  1500. </div>
  1501. <div class="description">
  1502. Create an item object, containing all needed parameters
  1503. </div>
  1504. <dl class="detailList">
  1505. <dt class="heading">Parameters:</dt>
  1506. <dt>
  1507. <span class="light fixedFont">{Object}</span> <b>itemData</b>
  1508. </dt>
  1509. <dd>Object containing parameters start, end
  1510. content, group.</dd>
  1511. </dl>
  1512. <dl class="detailList">
  1513. <dt class="heading">Returns:</dt>
  1514. <dd><span class="light fixedFont">{Object}</span> item</dd>
  1515. </dl>
  1516. <hr />
  1517. <a name="deleteAllItems"> </a>
  1518. <div class="fixedFont">
  1519. <b>deleteAllItems</b>()
  1520. </div>
  1521. <div class="description">
  1522. Delete all items
  1523. </div>
  1524. <hr />
  1525. <a name="deleteGroups"> </a>
  1526. <div class="fixedFont">
  1527. <b>deleteGroups</b>()
  1528. </div>
  1529. <div class="description">
  1530. Delete all groups
  1531. </div>
  1532. <hr />
  1533. <a name="deleteItem"> </a>
  1534. <div class="fixedFont">
  1535. <b>deleteItem</b>(index, preventRender)
  1536. </div>
  1537. <div class="description">
  1538. Delete an item
  1539. </div>
  1540. <dl class="detailList">
  1541. <dt class="heading">Parameters:</dt>
  1542. <dt>
  1543. <span class="light fixedFont">{int}</span> <b>index</b>
  1544. </dt>
  1545. <dd>Index of the item to be deleted</dd>
  1546. <dt>
  1547. <span class="light fixedFont">{boolean}</span> <b>preventRender</b>
  1548. <i>Optional, Default: false</i>
  1549. </dt>
  1550. <dd>Do not re-render timeline if true
  1551. (optimization for multiple delete)</dd>
  1552. </dl>
  1553. <hr />
  1554. <a name="draw"> </a>
  1555. <div class="fixedFont">
  1556. <b>draw</b>(data, options)
  1557. </div>
  1558. <div class="description">
  1559. Main drawing logic. This is the function that needs to be called
  1560. in the html page, to draw the timeline.
  1561. A data table with the events must be provided, and an options table.
  1562. </div>
  1563. <dl class="detailList">
  1564. <dt class="heading">Parameters:</dt>
  1565. <dt>
  1566. <span class="light fixedFont">{google.visualization.DataTable}</span> <b>data</b>
  1567. </dt>
  1568. <dd>The data containing the events for the timeline.
  1569. Object DataTable is defined in
  1570. google.visualization.DataTable</dd>
  1571. <dt>
  1572. <span class="light fixedFont">{Object}</span> <b>options</b>
  1573. </dt>
  1574. <dd>A name/value map containing settings for the
  1575. timeline. Optional. The use of options here
  1576. is deprecated. Pass timeline options in the
  1577. constructor or use setOptions()</dd>
  1578. </dl>
  1579. <hr />
  1580. <a name="filterItems"> </a>
  1581. <div class="fixedFont">
  1582. <b>filterItems</b>()
  1583. </div>
  1584. <div class="description">
  1585. Filter the visible events
  1586. </div>
  1587. <hr />
  1588. <a name="finalItemsPosition"> </a>
  1589. <div class="fixedFont">
  1590. <b>finalItemsPosition</b>(items, groupBase, group)
  1591. </div>
  1592. <div class="description">
  1593. </div>
  1594. <dl class="detailList">
  1595. <dt class="heading">Parameters:</dt>
  1596. <dt>
  1597. <b>items</b>
  1598. </dt>
  1599. <dd></dd>
  1600. <dt>
  1601. <b>groupBase</b>
  1602. </dt>
  1603. <dd></dd>
  1604. <dt>
  1605. <b>group</b>
  1606. </dt>
  1607. <dd></dd>
  1608. </dl>
  1609. <hr />
  1610. <a name=".getAbsoluteLeft"> </a>
  1611. <div class="fixedFont">&lt;static&gt;
  1612. <span class="light">{number}</span>
  1613. <span class="light">links.Timeline.</span><b>getAbsoluteLeft</b>(elem)
  1614. </div>
  1615. <div class="description">
  1616. Retrieve the absolute left value of a DOM element
  1617. </div>
  1618. <dl class="detailList">
  1619. <dt class="heading">Parameters:</dt>
  1620. <dt>
  1621. <span class="light fixedFont">{Element}</span> <b>elem</b>
  1622. </dt>
  1623. <dd>A dom element, for example a div</dd>
  1624. </dl>
  1625. <dl class="detailList">
  1626. <dt class="heading">Returns:</dt>
  1627. <dd><span class="light fixedFont">{number}</span> left The absolute left position of this element
  1628. in the browser page.</dd>
  1629. </dl>
  1630. <hr />
  1631. <a name=".getAbsoluteTop"> </a>
  1632. <div class="fixedFont">&lt;static&gt;
  1633. <span class="light">{number}</span>
  1634. <span class="light">links.Timeline.</span><b>getAbsoluteTop</b>(elem)
  1635. </div>
  1636. <div class="description">
  1637. Retrieve the absolute top value of a DOM element
  1638. </div>
  1639. <dl class="detailList">
  1640. <dt class="heading">Parameters:</dt>
  1641. <dt>
  1642. <span class="light fixedFont">{Element}</span> <b>elem</b>
  1643. </dt>
  1644. <dd>A dom element, for example a div</dd>
  1645. </dl>
  1646. <dl class="detailList">
  1647. <dt class="heading">Returns:</dt>
  1648. <dd><span class="light fixedFont">{number}</span> top The absolute top position of this element
  1649. in the browser page.</dd>
  1650. </dl>
  1651. <hr />
  1652. <a name="getCluster"> </a>
  1653. <div class="fixedFont">
  1654. <span class="light">{Object}</span>
  1655. <b>getCluster</b>(index)
  1656. </div>
  1657. <div class="description">
  1658. Retrieve the properties of a cluster.
  1659. </div>
  1660. <dl class="detailList">
  1661. <dt class="heading">Parameters:</dt>
  1662. <dt>
  1663. <span class="light fixedFont">{Number}</span> <b>index</b>
  1664. </dt>
  1665. <dd></dd>
  1666. </dl>
  1667. <dl class="detailList">
  1668. <dt class="heading">Returns:</dt>
  1669. <dd><span class="light fixedFont">{Object}</span> clusterdata Object containing cluster properties:<br>
  1670. {Date} start (required),
  1671. {String} type (optional)
  1672. {Array} array with item data as is in getItem()</dd>
  1673. </dl>
  1674. <hr />
  1675. <a name="getClusterIndex"> </a>
  1676. <div class="fixedFont">
  1677. <span class="light">{Number | undefined}</span>
  1678. <b>getClusterIndex</b>(element)
  1679. </div>
  1680. <div class="description">
  1681. Find the cluster index from a given HTML element
  1682. If no cluster index is found, undefined is returned
  1683. </div>
  1684. <dl class="detailList">
  1685. <dt class="heading">Parameters:</dt>
  1686. <dt>
  1687. <span class="light fixedFont">{Element}</span> <b>element</b>
  1688. </dt>
  1689. <dd></dd>
  1690. </dl>
  1691. <dl class="detailList">
  1692. <dt class="heading">Returns:</dt>
  1693. <dd><span class="light fixedFont">{Number | undefined}</span> index</dd>
  1694. </dl>
  1695. <hr />
  1696. <a name="getCurrentTime"> </a>
  1697. <div class="fixedFont">
  1698. <span class="light">{Date}</span>
  1699. <b>getCurrentTime</b>()
  1700. </div>
  1701. <div class="description">
  1702. Get current time. The time can have an offset from the real time, when
  1703. the current time has been changed via the method setCurrentTime.
  1704. </div>
  1705. <dl class="detailList">
  1706. <dt class="heading">Returns:</dt>
  1707. <dd><span class="light fixedFont">{Date}</span> time</dd>
  1708. </dl>
  1709. <hr />
  1710. <a name="getCustomTime"> </a>
  1711. <div class="fixedFont">
  1712. <span class="light">{Date}</span>
  1713. <b>getCustomTime</b>()
  1714. </div>
  1715. <div class="description">
  1716. Retrieve the current custom time.
  1717. </div>
  1718. <dl class="detailList">
  1719. <dt class="heading">Returns:</dt>
  1720. <dd><span class="light fixedFont">{Date}</span> customTime</dd>
  1721. </dl>
  1722. <hr />
  1723. <a name="getData"> </a>
  1724. <div class="fixedFont">
  1725. <span class="light">{google.visualization.DataTable | Array}</span>
  1726. <b>getData</b>()
  1727. </div>
  1728. <div class="description">
  1729. Return the original data table.
  1730. </div>
  1731. <dl class="detailList">
  1732. <dt class="heading">Returns:</dt>
  1733. <dd><span class="light fixedFont">{google.visualization.DataTable | Array}</span> data</dd>
  1734. </dl>
  1735. <hr />
  1736. <a name="getDataRange"> </a>
  1737. <div class="fixedFont">
  1738. <span class="light">{Object}</span>
  1739. <b>getDataRange</b>(withMargin)
  1740. </div>
  1741. <div class="description">
  1742. Get the date range of the items.
  1743. </div>
  1744. <dl class="detailList">
  1745. <dt class="heading">Parameters:</dt>
  1746. <dt>
  1747. <span class="light fixedFont">{boolean}</span> <b>withMargin</b>
  1748. <i>Optional</i>
  1749. </dt>
  1750. <dd>If true, 5% of whitespace is added to the
  1751. left and right of the range. Default is false.</dd>
  1752. </dl>
  1753. <dl class="detailList">
  1754. <dt class="heading">Returns:</dt>
  1755. <dd><span class="light fixedFont">{Object}</span> range An object with parameters min and max.
  1756. - {Date} min is the lowest start date of the items
  1757. - {Date} max is the highest start or end date of the items
  1758. If no data is available, the values of min and max
  1759. will be undefined</dd>
  1760. </dl>
  1761. <hr />
  1762. <a name="getGroup"> </a>
  1763. <div class="fixedFont">
  1764. <span class="light">{Object}</span>
  1765. <b>getGroup</b>(groupName)
  1766. </div>
  1767. <div class="description">
  1768. Get a group by the group name. When the group does not exist,
  1769. it will be created.
  1770. </div>
  1771. <dl class="detailList">
  1772. <dt class="heading">Parameters:</dt>
  1773. <dt>
  1774. <span class="light fixedFont">{String}</span> <b>groupName</b>
  1775. </dt>
  1776. <dd>the name of the group</dd>
  1777. </dl>
  1778. <dl class="detailList">
  1779. <dt class="heading">Returns:</dt>
  1780. <dd><span class="light fixedFont">{Object}</span> groupObject</dd>
  1781. </dl>
  1782. <hr />
  1783. <a name="getGroupFromHeight"> </a>
  1784. <div class="fixedFont">
  1785. <span class="light">{Object | undefined}</span>
  1786. <b>getGroupFromHeight</b>(height)
  1787. </div>
  1788. <div class="description">
  1789. Find the group from a given height in the timeline
  1790. </div>
  1791. <dl class="detailList">
  1792. <dt class="heading">Parameters:</dt>
  1793. <dt>
  1794. <span class="light fixedFont">{Number}</span> <b>height</b>
  1795. </dt>
  1796. <dd>Height in the timeline</dd>
  1797. </dl>
  1798. <dl class="detailList">
  1799. <dt class="heading">Returns:</dt>
  1800. <dd><span class="light fixedFont">{Object | undefined}</span> group The group object, or undefined if out
  1801. of range</dd>
  1802. </dl>
  1803. <hr />
  1804. <a name="getGroupName"> </a>
  1805. <div class="fixedFont">
  1806. <span class="light">{String}</span>
  1807. <b>getGroupName</b>(groupObj)
  1808. </div>
  1809. <div class="description">
  1810. Get the group name from a group object.
  1811. </div>
  1812. <dl class="detailList">
  1813. <dt class="heading">Parameters:</dt>
  1814. <dt>
  1815. <span class="light fixedFont">{Object}</span> <b>groupObj</b>
  1816. </dt>
  1817. <dd></dd>
  1818. </dl>
  1819. <dl class="detailList">
  1820. <dt class="heading">Returns:</dt>
  1821. <dd><span class="light fixedFont">{String}</span> groupName the name of the group, or undefined when group
  1822. was not provided</dd>
  1823. </dl>
  1824. <hr />
  1825. <a name="getItem"> </a>
  1826. <div class="fixedFont">
  1827. <span class="light">{Object}</span>
  1828. <b>getItem</b>(index)
  1829. </div>
  1830. <div class="description">
  1831. Retrieve the properties of an item.
  1832. </div>
  1833. <dl class="detailList">
  1834. <dt class="heading">Parameters:</dt>
  1835. <dt>
  1836. <span class="light fixedFont">{Number}</span> <b>index</b>
  1837. </dt>
  1838. <dd></dd>
  1839. </dl>
  1840. <dl class="detailList">
  1841. <dt class="heading">Returns:</dt>
  1842. <dd><span class="light fixedFont">{Object}</span> itemData Object containing item properties:<br>
  1843. {Date} start (required),
  1844. {Date} end (optional),
  1845. {String} content (required),
  1846. {String} group (optional),
  1847. {String} className (optional)
  1848. {boolean} editable (optional)
  1849. {String} type (optional)</dd>
  1850. </dl>
  1851. <hr />
  1852. <a name="getItemIndex"> </a>
  1853. <div class="fixedFont">
  1854. <span class="light">{Number | undefined}</span>
  1855. <b>getItemIndex</b>(element)
  1856. </div>
  1857. <div class="description">
  1858. Find the item index from a given HTML element
  1859. If no item index is found, undefined is returned
  1860. </div>
  1861. <dl class="detailList">
  1862. <dt class="heading">Parameters:</dt>
  1863. <dt>
  1864. <span class="light fixedFont">{Element}</span> <b>element</b>
  1865. </dt>
  1866. <dd></dd>
  1867. </dl>
  1868. <dl class="detailList">
  1869. <dt class="heading">Returns:</dt>
  1870. <dd><span class="light fixedFont">{Number | undefined}</span> index</dd>
  1871. </dl>
  1872. <hr />
  1873. <a name="getItemsByGroup"> </a>
  1874. <div class="fixedFont">
  1875. <b>getItemsByGroup</b>(items)
  1876. </div>
  1877. <div class="description">
  1878. </div>
  1879. <dl class="detailList">
  1880. <dt class="heading">Parameters:</dt>
  1881. <dt>
  1882. <b>items</b>
  1883. </dt>
  1884. <dd></dd>
  1885. </dl>
  1886. <hr />
  1887. <a name="getOptions"> </a>
  1888. <div class="fixedFont">
  1889. <b>getOptions</b>()
  1890. </div>
  1891. <div class="description">
  1892. Get options for the timeline.
  1893. </div>
  1894. <dl class="detailList">
  1895. <dt class="heading">Returns:</dt>
  1896. <dd>the options object</dd>
  1897. </dl>
  1898. <hr />
  1899. <a name=".getPageX"> </a>
  1900. <div class="fixedFont">&lt;static&gt;
  1901. <span class="light">{Number}</span>
  1902. <span class="light">links.Timeline.</span><b>getPageX</b>(event)
  1903. </div>
  1904. <div class="description">
  1905. Get the absolute, horizontal mouse position from an event.
  1906. </div>
  1907. <dl class="detailList">
  1908. <dt class="heading">Parameters:</dt>
  1909. <dt>
  1910. <span class="light fixedFont">{Event}</span> <b>event</b>
  1911. </dt>
  1912. <dd></dd>
  1913. </dl>
  1914. <dl class="detailList">
  1915. <dt class="heading">Returns:</dt>
  1916. <dd><span class="light fixedFont">{Number}</span> pageX</dd>
  1917. </dl>
  1918. <hr />
  1919. <a name=".getPageY"> </a>
  1920. <div class="fixedFont">&lt;static&gt;
  1921. <span class="light">{Number}</span>
  1922. <span class="light">links.Timeline.</span><b>getPageY</b>(event)
  1923. </div>
  1924. <div class="description">
  1925. Get the absolute, vertical mouse position from an event.
  1926. </div>
  1927. <dl class="detailList">
  1928. <dt class="heading">Parameters:</dt>
  1929. <dt>
  1930. <span class="light fixedFont">{Event}</span> <b>event</b>
  1931. </dt>
  1932. <dd></dd>
  1933. </dl>
  1934. <dl class="detailList">
  1935. <dt class="heading">Returns:</dt>
  1936. <dd><span class="light fixedFont">{Number}</span> pageY</dd>
  1937. </dl>
  1938. <hr />
  1939. <a name="getSelection"> </a>
  1940. <div class="fixedFont">
  1941. <span class="light">{<a href="../symbols/Array.html">Array</a>}</span>
  1942. <b>getSelection</b>()
  1943. </div>
  1944. <div class="description">
  1945. Retrieve the currently selected event
  1946. </div>
  1947. <dl class="detailList">
  1948. <dt class="heading">Returns:</dt>
  1949. <dd><span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> sel An array with a column row, containing the row number
  1950. of the selected event. If there is no selection, an
  1951. empty array is returned.</dd>
  1952. </dl>
  1953. <hr />
  1954. <a name=".getTarget"> </a>
  1955. <div class="fixedFont">&lt;static&gt;
  1956. <span class="light">{Element}</span>
  1957. <span class="light">links.Timeline.</span><b>getTarget</b>(event)
  1958. </div>
  1959. <div class="description">
  1960. Get HTML element which is the target of the event
  1961. </div>
  1962. <dl class="detailList">
  1963. <dt class="heading">Parameters:</dt>
  1964. <dt>
  1965. <span class="light fixedFont">{Event}</span> <b>event</b>
  1966. </dt>
  1967. <dd></dd>
  1968. </dl>
  1969. <dl class="detailList">
  1970. <dt class="heading">Returns:</dt>
  1971. <dd><span class="light fixedFont">{Element}</span> target element</dd>
  1972. </dl>
  1973. <hr />
  1974. <a name="getVisibleChartRange"> </a>
  1975. <div class="fixedFont">
  1976. <span class="light">{Object}</span>
  1977. <b>getVisibleChartRange</b>()
  1978. </div>
  1979. <div class="description">
  1980. Retrieve the current visible range in the timeline.
  1981. </div>
  1982. <dl class="detailList">
  1983. <dt class="heading">Returns:</dt>
  1984. <dd><span class="light fixedFont">{Object}</span> An object with start and end properties</dd>
  1985. </dl>
  1986. <hr />
  1987. <a name="getVisibleItems"> </a>
  1988. <div class="fixedFont">
  1989. <b>getVisibleItems</b>(start, end)
  1990. </div>
  1991. <div class="description">
  1992. Find all elements within the start and end range
  1993. If no element is found, returns an empty array
  1994. </div>
  1995. <dl class="detailList">
  1996. <dt class="heading">Parameters:</dt>
  1997. <dt>
  1998. <b>start</b>
  1999. </dt>
  2000. <dd>time</dd>
  2001. <dt>
  2002. <b>end</b>
  2003. </dt>
  2004. <dd>time</dd>
  2005. </dl>
  2006. <dl class="detailList">
  2007. <dt class="heading">Returns:</dt>
  2008. <dd>Array itemsInRange</dd>
  2009. </dl>
  2010. <hr />
  2011. <a name="initialItemsPosition"> </a>
  2012. <div class="fixedFont">
  2013. <b>initialItemsPosition</b>(items, groupBase)
  2014. </div>
  2015. <div class="description">
  2016. </div>
  2017. <dl class="detailList">
  2018. <dt class="heading">Parameters:</dt>
  2019. <dt>
  2020. <b>items</b>
  2021. </dt>
  2022. <dd></dd>
  2023. <dt>
  2024. <b>groupBase</b>
  2025. </dt>
  2026. <dd></dd>
  2027. </dl>
  2028. <hr />
  2029. <a name=".isArray"> </a>
  2030. <div class="fixedFont">&lt;static&gt;
  2031. <span class="light">{Boolean}</span>
  2032. <span class="light">links.Timeline.</span><b>isArray</b>(obj)
  2033. </div>
  2034. <div class="description">
  2035. Check if given object is a Javascript Array
  2036. </div>
  2037. <dl class="detailList">
  2038. <dt class="heading">Parameters:</dt>
  2039. <dt>
  2040. <span class="light fixedFont">{*}</span> <b>obj</b>
  2041. </dt>
  2042. <dd></dd>
  2043. </dl>
  2044. <dl class="detailList">
  2045. <dt class="heading">Returns:</dt>
  2046. <dd><span class="light fixedFont">{Boolean}</span> isArray true if the given object is an array</dd>
  2047. </dl>
  2048. <hr />
  2049. <a name="isEditable"> </a>
  2050. <div class="fixedFont">
  2051. <span class="light">{boolean}</span>
  2052. <b>isEditable</b>(item)
  2053. </div>
  2054. <div class="description">
  2055. Check whether a given item is editable
  2056. </div>
  2057. <dl class="detailList">
  2058. <dt class="heading">Parameters:</dt>
  2059. <dt>
  2060. <span class="light fixedFont">{<a href="../symbols/links.Timeline.Item.html">links.Timeline.Item</a>}</span> <b>item</b>
  2061. </dt>
  2062. <dd></dd>
  2063. </dl>
  2064. <dl class="detailList">
  2065. <dt class="heading">Returns:</dt>
  2066. <dd><span class="light fixedFont">{boolean}</span> editable</dd>
  2067. </dl>
  2068. <hr />
  2069. <a name="isSelected"> </a>
  2070. <div class="fixedFont">
  2071. <span class="light">{boolean}</span>
  2072. <b>isSelected</b>(index)
  2073. </div>
  2074. <div class="description">
  2075. Check if an item is currently selected
  2076. </div>
  2077. <dl class="detailList">
  2078. <dt class="heading">Parameters:</dt>
  2079. <dt>
  2080. <span class="light fixedFont">{Number}</span> <b>index</b>
  2081. </dt>
  2082. <dd></dd>
  2083. </dl>
  2084. <dl class="detailList">
  2085. <dt class="heading">Returns:</dt>
  2086. <dd><span class="light fixedFont">{boolean}</span> true if row is selected, else false</dd>
  2087. </dl>
  2088. <hr />
  2089. <a name=".mapColumnIds"> </a>
  2090. <div class="fixedFont">&lt;static&gt;
  2091. <span class="light">{map}</span>
  2092. <span class="light">links.Timeline.</span><b>mapColumnIds</b>(dataTable)
  2093. </div>
  2094. <div class="description">
  2095. Retrieve a map with the column indexes of the columns by column name.
  2096. For example, the method returns the map
  2097. {
  2098. start: 0,
  2099. end: 1,
  2100. content: 2,
  2101. group: undefined,
  2102. className: undefined
  2103. editable: undefined
  2104. type: undefined
  2105. }
  2106. </div>
  2107. <dl class="detailList">
  2108. <dt class="heading">Parameters:</dt>
  2109. <dt>
  2110. <span class="light fixedFont">{google.visualization.DataTable}</span> <b>dataTable</b>
  2111. </dt>
  2112. <dd></dd>
  2113. </dl>
  2114. <hr />
  2115. <a name="move"> </a>
  2116. <div class="fixedFont">
  2117. <b>move</b>(moveFactor)
  2118. </div>
  2119. <div class="description">
  2120. Move the timeline the given movefactor to the left or right. Start and end
  2121. date will be adjusted, and the timeline will be redrawn.
  2122. For example, try moveFactor = 0.1 or -0.1
  2123. </div>
  2124. <dl class="detailList">
  2125. <dt class="heading">Parameters:</dt>
  2126. <dt>
  2127. <span class="light fixedFont">{Number}</span> <b>moveFactor</b>
  2128. </dt>
  2129. <dd>Moving amount. Positive value will move right,
  2130. negative value will move left</dd>
  2131. </dl>
  2132. <hr />
  2133. <a name="onDblClick"> </a>
  2134. <div class="fixedFont">
  2135. <b>onDblClick</b>(event)
  2136. </div>
  2137. <div class="description">
  2138. Double click event occurred for an item
  2139. </div>
  2140. <dl class="detailList">
  2141. <dt class="heading">Parameters:</dt>
  2142. <dt>
  2143. <span class="light fixedFont">{Event}</span> <b>event</b>
  2144. </dt>
  2145. <dd></dd>
  2146. </dl>
  2147. <hr />
  2148. <a name="onMouseDown"> </a>
  2149. <div class="fixedFont">
  2150. <b>onMouseDown</b>(event)
  2151. </div>
  2152. <div class="description">
  2153. Start a moving operation inside the provided parent element
  2154. </div>
  2155. <dl class="detailList">
  2156. <dt class="heading">Parameters:</dt>
  2157. <dt>
  2158. <span class="light fixedFont">{Event}</span> <b>event</b>
  2159. </dt>
  2160. <dd>The event that occurred (required for
  2161. retrieving the mouse position)</dd>
  2162. </dl>
  2163. <hr />
  2164. <a name="onMouseMove"> </a>
  2165. <div class="fixedFont">
  2166. <b>onMouseMove</b>(event)
  2167. </div>
  2168. <div class="description">
  2169. Perform moving operating.
  2170. This function activated from within the funcion links.Timeline.onMouseDown().
  2171. </div>
  2172. <dl class="detailList">
  2173. <dt class="heading">Parameters:</dt>
  2174. <dt>
  2175. <span class="light fixedFont">{Event}</span> <b>event</b>
  2176. </dt>
  2177. <dd>Well, eehh, the event</dd>
  2178. </dl>
  2179. <hr />
  2180. <a name="onMouseUp"> </a>
  2181. <div class="fixedFont">
  2182. <b>onMouseUp</b>(event)
  2183. </div>
  2184. <div class="description">
  2185. Stop moving operating.
  2186. This function activated from within the funcion links.Timeline.onMouseDown().
  2187. </div>
  2188. <dl class="detailList">
  2189. <dt class="heading">Parameters:</dt>
  2190. <dt>
  2191. <span class="light fixedFont">{event}</span> <b>event</b>
  2192. </dt>
  2193. <dd>The event</dd>
  2194. </dl>
  2195. <hr />
  2196. <a name="onMouseWheel"> </a>
  2197. <div class="fixedFont">
  2198. <b>onMouseWheel</b>(event)
  2199. </div>
  2200. <div class="description">
  2201. Event handler for mouse wheel event, used to zoom the timeline
  2202. Code from http://adomas.org/javascript-mouse-wheel/
  2203. </div>
  2204. <dl class="detailList">
  2205. <dt class="heading">Parameters:</dt>
  2206. <dt>
  2207. <span class="light fixedFont">{Event}</span> <b>event</b>
  2208. </dt>
  2209. <dd>The event</dd>
  2210. </dl>
  2211. <hr />
  2212. <a name="onTouchEnd"> </a>
  2213. <div class="fixedFont">
  2214. <b>onTouchEnd</b>(event)
  2215. </div>
  2216. <div class="description">
  2217. Event handler for touchend event on mobile devices
  2218. </div>
  2219. <dl class="detailList">
  2220. <dt class="heading">Parameters:</dt>
  2221. <dt>
  2222. <b>event</b>
  2223. </dt>
  2224. <dd></dd>
  2225. </dl>
  2226. <hr />
  2227. <a name="onTouchMove"> </a>
  2228. <div class="fixedFont">
  2229. <b>onTouchMove</b>(event)
  2230. </div>
  2231. <div class="description">
  2232. Event handler for touchmove event on mobile devices
  2233. </div>
  2234. <dl class="detailList">
  2235. <dt class="heading">Parameters:</dt>
  2236. <dt>
  2237. <b>event</b>
  2238. </dt>
  2239. <dd></dd>
  2240. </dl>
  2241. <hr />
  2242. <a name="onTouchStart"> </a>
  2243. <div class="fixedFont">
  2244. <b>onTouchStart</b>(event)
  2245. </div>
  2246. <div class="description">
  2247. Event handler for touchstart event on mobile devices
  2248. </div>
  2249. <dl class="detailList">
  2250. <dt class="heading">Parameters:</dt>
  2251. <dt>
  2252. <b>event</b>
  2253. </dt>
  2254. <dd></dd>
  2255. </dl>
  2256. <hr />
  2257. <a name=".parseJSONDate"> </a>
  2258. <div class="fixedFont">&lt;static&gt;
  2259. <span class="light">{Date}</span>
  2260. <span class="light">links.Timeline.</span><b>parseJSONDate</b>(date)
  2261. </div>
  2262. <div class="description">
  2263. parse a JSON date
  2264. </div>
  2265. <dl class="detailList">
  2266. <dt class="heading">Parameters:</dt>
  2267. <dt>
  2268. <span class="light fixedFont">{Date | String | Number}</span> <b>date</b>
  2269. </dt>
  2270. <dd>Date object to be parsed. Can be:
  2271. - a Date object like new Date(),
  2272. - a long like 1356970529389,
  2273. an ISO String like "2012-12-31T16:16:07.213Z",
  2274. or a .Net Date string like
  2275. "\/Date(1356970529389)\/"</dd>
  2276. </dl>
  2277. <dl class="detailList">
  2278. <dt class="heading">Returns:</dt>
  2279. <dd><span class="light fixedFont">{Date}</span> parsedDate</dd>
  2280. </dl>
  2281. <hr />
  2282. <a name=".preventDefault"> </a>
  2283. <div class="fixedFont">&lt;static&gt;
  2284. <span class="light">links.Timeline.</span><b>preventDefault</b>(event)
  2285. </div>
  2286. <div class="description">
  2287. Cancels the event if it is cancelable, without stopping further propagation of the event.
  2288. </div>
  2289. <dl class="detailList">
  2290. <dt class="heading">Parameters:</dt>
  2291. <dt>
  2292. <b>event</b>
  2293. </dt>
  2294. <dd></dd>
  2295. </dl>
  2296. <hr />
  2297. <a name="recalcConversion"> </a>
  2298. <div class="fixedFont">
  2299. <b>recalcConversion</b>()
  2300. </div>
  2301. <div class="description">
  2302. Calculate the factor and offset to convert a position on screen to the
  2303. corresponding date and vice versa.
  2304. After the method calcConversionFactor is executed once, the methods screenToTime and
  2305. timeToScreen can be used.
  2306. </div>
  2307. <hr />
  2308. <a name="recalcItems"> </a>
  2309. <div class="fixedFont">
  2310. <span class="light">{boolean}</span>
  2311. <b>recalcItems</b>()
  2312. </div>
  2313. <div class="description">
  2314. Recalculate item properties:
  2315. - the height of each group.
  2316. - the actualHeight, from the stacked items or the sum of the group heights
  2317. </div>
  2318. <dl class="detailList">
  2319. <dt class="heading">Returns:</dt>
  2320. <dd><span class="light fixedFont">{boolean}</span> resized returns true if any of the items properties is
  2321. changed</dd>
  2322. </dl>
  2323. <hr />
  2324. <a name="redraw"> </a>
  2325. <div class="fixedFont">
  2326. <b>redraw</b>()
  2327. </div>
  2328. <div class="description">
  2329. Redraw the timeline
  2330. Reloads the (linked) data table and redraws the timeline when resized.
  2331. See also the method checkResize
  2332. </div>
  2333. <hr />
  2334. <a name="reflowAxis"> </a>
  2335. <div class="fixedFont">
  2336. <span class="light">{boolean}</span>
  2337. <b>reflowAxis</b>()
  2338. </div>
  2339. <div class="description">
  2340. Reflow the timeline axis. Calculate its height, width, positioning, etc...
  2341. </div>
  2342. <dl class="detailList">
  2343. <dt class="heading">Returns:</dt>
  2344. <dd><span class="light fixedFont">{boolean}</span> resized returns true if the axis is resized</dd>
  2345. </dl>
  2346. <hr />
  2347. <a name="reflowFrame"> </a>
  2348. <div class="fixedFont">
  2349. <span class="light">{boolean}</span>
  2350. <b>reflowFrame</b>()
  2351. </div>
  2352. <div class="description">
  2353. Reflow the timeline frame
  2354. </div>
  2355. <dl class="detailList">
  2356. <dt class="heading">Returns:</dt>
  2357. <dd><span class="light fixedFont">{boolean}</span> resized Returns true if any of the frame elements
  2358. have been resized.</dd>
  2359. </dl>
  2360. <hr />
  2361. <a name="reflowGroups"> </a>
  2362. <div class="fixedFont">
  2363. <span class="light">{boolean}</span>
  2364. <b>reflowGroups</b>()
  2365. </div>
  2366. <div class="description">
  2367. Reflow the size of the groups
  2368. </div>
  2369. <dl class="detailList">
  2370. <dt class="heading">Returns:</dt>
  2371. <dd><span class="light fixedFont">{boolean}</span> resized Returns true if any of the frame elements
  2372. have been resized.</dd>
  2373. </dl>
  2374. <hr />
  2375. <a name="reflowItems"> </a>
  2376. <div class="fixedFont">
  2377. <span class="light">{boolean}</span>
  2378. <b>reflowItems</b>()
  2379. </div>
  2380. <div class="description">
  2381. Reflow all items, retrieve their actual size
  2382. </div>
  2383. <dl class="detailList">
  2384. <dt class="heading">Returns:</dt>
  2385. <dd><span class="light fixedFont">{boolean}</span> resized returns true if any of the items is resized</dd>
  2386. </dl>
  2387. <hr />
  2388. <a name=".removeClassName"> </a>
  2389. <div class="fixedFont">&lt;static&gt;
  2390. <span class="light">links.Timeline.</span><b>removeClassName</b>(elem, className)
  2391. </div>
  2392. <div class="description">
  2393. Removes one or more className's from the given elements style
  2394. </div>
  2395. <dl class="detailList">
  2396. <dt class="heading">Parameters:</dt>
  2397. <dt>
  2398. <span class="light fixedFont">{Element}</span> <b>elem</b>
  2399. </dt>
  2400. <dd></dd>
  2401. <dt>
  2402. <span class="light fixedFont">{String}</span> <b>className</b>
  2403. </dt>
  2404. <dd></dd>
  2405. </dl>
  2406. <hr />
  2407. <a name=".removeEventListener"> </a>
  2408. <div class="fixedFont">&lt;static&gt;
  2409. <span class="light">links.Timeline.</span><b>removeEventListener</b>(element, action, listener, useCapture)
  2410. </div>
  2411. <div class="description">
  2412. Remove an event listener from an element
  2413. </div>
  2414. <dl class="detailList">
  2415. <dt class="heading">Parameters:</dt>
  2416. <dt>
  2417. <span class="light fixedFont">{Element}</span> <b>element</b>
  2418. </dt>
  2419. <dd>An html dom element</dd>
  2420. <dt>
  2421. <span class="light fixedFont">{string}</span> <b>action</b>
  2422. </dt>
  2423. <dd>The name of the event, for example "mousedown"</dd>
  2424. <dt>
  2425. <span class="light fixedFont">{function}</span> <b>listener</b>
  2426. </dt>
  2427. <dd>The listener function</dd>
  2428. <dt>
  2429. <span class="light fixedFont">{boolean}</span> <b>useCapture</b>
  2430. </dt>
  2431. <dd></dd>
  2432. </dl>
  2433. <hr />
  2434. <a name="render"> </a>
  2435. <div class="fixedFont">
  2436. <b>render</b>(options)
  2437. </div>
  2438. <div class="description">
  2439. Re-render (reflow and repaint) all components of the Timeline: frame, axis,
  2440. items, ...
  2441. </div>
  2442. <dl class="detailList">
  2443. <dt class="heading">Parameters:</dt>
  2444. <dt>
  2445. <span class="light fixedFont">{Object}</span> <b>options</b>
  2446. <i>Optional</i>
  2447. </dt>
  2448. <dd>Available options:
  2449. {boolean} renderTimesLeft Number of times the
  2450. render may be repeated
  2451. 5 times by default.
  2452. {boolean} animate takes options.animate
  2453. as default value</dd>
  2454. </dl>
  2455. <hr />
  2456. <a name="repaint"> </a>
  2457. <div class="fixedFont">
  2458. <span class="light">{boolean}</span>
  2459. <b>repaint</b>()
  2460. </div>
  2461. <div class="description">
  2462. Repaint all components of the Timeline
  2463. </div>
  2464. <dl class="detailList">
  2465. <dt class="heading">Returns:</dt>
  2466. <dd><span class="light fixedFont">{boolean}</span> needsReflow Returns true if the DOM is changed such that
  2467. a reflow is needed.</dd>
  2468. </dl>
  2469. <hr />
  2470. <a name="repaintAxis"> </a>
  2471. <div class="fixedFont">
  2472. <span class="light">{boolean}</span>
  2473. <b>repaintAxis</b>()
  2474. </div>
  2475. <div class="description">
  2476. Redraw the timeline axis with minor and major labels
  2477. </div>
  2478. <dl class="detailList">
  2479. <dt class="heading">Returns:</dt>
  2480. <dd><span class="light fixedFont">{boolean}</span> needsReflow Returns true if the DOM is changed such
  2481. that a reflow is needed.</dd>
  2482. </dl>
  2483. <hr />
  2484. <a name="repaintAxisCharacters"> </a>
  2485. <div class="fixedFont">
  2486. <span class="light">{boolean}</span>
  2487. <b>repaintAxisCharacters</b>()
  2488. </div>
  2489. <div class="description">
  2490. Create characters used to determine the size of text on the axis
  2491. </div>
  2492. <dl class="detailList">
  2493. <dt class="heading">Returns:</dt>
  2494. <dd><span class="light fixedFont">{boolean}</span> needsReflow Returns true if the DOM is changed such that
  2495. a reflow is needed.</dd>
  2496. </dl>
  2497. <hr />
  2498. <a name="repaintAxisEndOverwriting"> </a>
  2499. <div class="fixedFont">
  2500. <b>repaintAxisEndOverwriting</b>()
  2501. </div>
  2502. <div class="description">
  2503. End of overwriting HTML DOM elements of the axis.
  2504. remaining elements will be removed
  2505. </div>
  2506. <hr />
  2507. <a name="repaintAxisHorizontal"> </a>
  2508. <div class="fixedFont">
  2509. <b>repaintAxisHorizontal</b>()
  2510. </div>
  2511. <div class="description">
  2512. Repaint the horizontal line and background of the axis
  2513. </div>
  2514. <hr />
  2515. <a name="repaintAxisMajorLine"> </a>
  2516. <div class="fixedFont">
  2517. <b>repaintAxisMajorLine</b>(x)
  2518. </div>
  2519. <div class="description">
  2520. Create a Major line for the axis at position x
  2521. </div>
  2522. <dl class="detailList">
  2523. <dt class="heading">Parameters:</dt>
  2524. <dt>
  2525. <span class="light fixedFont">{Number}</span> <b>x</b>
  2526. </dt>
  2527. <dd></dd>
  2528. </dl>
  2529. <hr />
  2530. <a name="repaintAxisMajorText"> </a>
  2531. <div class="fixedFont">
  2532. <b>repaintAxisMajorText</b>(x, text)
  2533. </div>
  2534. <div class="description">
  2535. Create a Major label for the axis at position x
  2536. </div>
  2537. <dl class="detailList">
  2538. <dt class="heading">Parameters:</dt>
  2539. <dt>
  2540. <span class="light fixedFont">{Number}</span> <b>x</b>
  2541. </dt>
  2542. <dd></dd>
  2543. <dt>
  2544. <span class="light fixedFont">{String}</span> <b>text</b>
  2545. </dt>
  2546. <dd></dd>
  2547. </dl>
  2548. <hr />
  2549. <a name="repaintAxisMinorLine"> </a>
  2550. <div class="fixedFont">
  2551. <b>repaintAxisMinorLine</b>(x)
  2552. </div>
  2553. <div class="description">
  2554. Create a minor line for the axis at position x
  2555. </div>
  2556. <dl class="detailList">
  2557. <dt class="heading">Parameters:</dt>
  2558. <dt>
  2559. <span class="light fixedFont">{Number}</span> <b>x</b>
  2560. </dt>
  2561. <dd></dd>
  2562. </dl>
  2563. <hr />
  2564. <a name="repaintAxisMinorText"> </a>
  2565. <div class="fixedFont">
  2566. <b>repaintAxisMinorText</b>(x, text)
  2567. </div>
  2568. <div class="description">
  2569. Create a minor label for the axis at position x
  2570. </div>
  2571. <dl class="detailList">
  2572. <dt class="heading">Parameters:</dt>
  2573. <dt>
  2574. <span class="light fixedFont">{Number}</span> <b>x</b>
  2575. </dt>
  2576. <dd></dd>
  2577. <dt>
  2578. <span class="light fixedFont">{String}</span> <b>text</b>
  2579. </dt>
  2580. <dd></dd>
  2581. </dl>
  2582. <hr />
  2583. <a name="repaintAxisStartOverwriting"> </a>
  2584. <div class="fixedFont">
  2585. <b>repaintAxisStartOverwriting</b>()
  2586. </div>
  2587. <div class="description">
  2588. Initialize redraw of the axis. All existing labels and lines will be
  2589. overwritten and reused.
  2590. </div>
  2591. <hr />
  2592. <a name="repaintCurrentTime"> </a>
  2593. <div class="fixedFont">
  2594. <b>repaintCurrentTime</b>()
  2595. </div>
  2596. <div class="description">
  2597. Redraw the current time bar
  2598. </div>
  2599. <hr />
  2600. <a name="repaintCustomTime"> </a>
  2601. <div class="fixedFont">
  2602. <b>repaintCustomTime</b>()
  2603. </div>
  2604. <div class="description">
  2605. Redraw the custom time bar
  2606. </div>
  2607. <hr />
  2608. <a name="repaintDeleteButton"> </a>
  2609. <div class="fixedFont">
  2610. <b>repaintDeleteButton</b>()
  2611. </div>
  2612. <div class="description">
  2613. Redraw the delete button, on the top right of the currently selected item
  2614. if there is no item selected, the button is hidden.
  2615. </div>
  2616. <hr />
  2617. <a name="repaintDragAreas"> </a>
  2618. <div class="fixedFont">
  2619. <b>repaintDragAreas</b>()
  2620. </div>
  2621. <div class="description">
  2622. Redraw the drag areas. When an item (ranges only) is selected,
  2623. it gets a drag area on the left and right side, to change its width
  2624. </div>
  2625. <hr />
  2626. <a name="repaintFrame"> </a>
  2627. <div class="fixedFont">
  2628. <span class="light">{boolean}</span>
  2629. <b>repaintFrame</b>()
  2630. </div>
  2631. <div class="description">
  2632. repaint the Timeline frame
  2633. </div>
  2634. <dl class="detailList">
  2635. <dt class="heading">Returns:</dt>
  2636. <dd><span class="light fixedFont">{boolean}</span> needsReflow Returns true if the DOM is changed such that
  2637. a reflow is needed.</dd>
  2638. </dl>
  2639. <hr />
  2640. <a name="repaintGroups"> </a>
  2641. <div class="fixedFont">
  2642. <b>repaintGroups</b>()
  2643. </div>
  2644. <div class="description">
  2645. Redraw the group labels
  2646. </div>
  2647. <hr />
  2648. <a name="repaintItems"> </a>
  2649. <div class="fixedFont">
  2650. <span class="light">{boolean}</span>
  2651. <b>repaintItems</b>()
  2652. </div>
  2653. <div class="description">
  2654. Repaint all items
  2655. </div>
  2656. <dl class="detailList">
  2657. <dt class="heading">Returns:</dt>
  2658. <dd><span class="light fixedFont">{boolean}</span> needsReflow Returns true if the DOM is changed such that
  2659. a reflow is needed.</dd>
  2660. </dl>
  2661. <hr />
  2662. <a name="repaintNavigation"> </a>
  2663. <div class="fixedFont">
  2664. <b>repaintNavigation</b>()
  2665. </div>
  2666. <div class="description">
  2667. Create the navigation buttons for zooming and moving
  2668. </div>
  2669. <hr />
  2670. <a name="screenToTime"> </a>
  2671. <div class="fixedFont">
  2672. <span class="light">{Date}</span>
  2673. <b>screenToTime</b>(x)
  2674. </div>
  2675. <div class="description">
  2676. Convert a position on screen (pixels) to a datetime
  2677. Before this method can be used, the method calcConversionFactor must be
  2678. executed once.
  2679. </div>
  2680. <dl class="detailList">
  2681. <dt class="heading">Parameters:</dt>
  2682. <dt>
  2683. <span class="light fixedFont">{int}</span> <b>x</b>
  2684. </dt>
  2685. <dd>Position on the screen in pixels</dd>
  2686. </dl>
  2687. <dl class="detailList">
  2688. <dt class="heading">Returns:</dt>
  2689. <dd><span class="light fixedFont">{Date}</span> time The datetime the corresponds with given position x</dd>
  2690. </dl>
  2691. <hr />
  2692. <a name="selectCluster"> </a>
  2693. <div class="fixedFont">
  2694. <b>selectCluster</b>(index)
  2695. </div>
  2696. <div class="description">
  2697. Select an cluster by its index
  2698. </div>
  2699. <dl class="detailList">
  2700. <dt class="heading">Parameters:</dt>
  2701. <dt>
  2702. <span class="light fixedFont">{Number}</span> <b>index</b>
  2703. </dt>
  2704. <dd></dd>
  2705. </dl>
  2706. <hr />
  2707. <a name="selectItem"> </a>
  2708. <div class="fixedFont">
  2709. <b>selectItem</b>(index)
  2710. </div>
  2711. <div class="description">
  2712. Select an item by its index
  2713. </div>
  2714. <dl class="detailList">
  2715. <dt class="heading">Parameters:</dt>
  2716. <dt>
  2717. <span class="light fixedFont">{Number}</span> <b>index</b>
  2718. </dt>
  2719. <dd></dd>
  2720. </dl>
  2721. <hr />
  2722. <a name="setAutoScale"> </a>
  2723. <div class="fixedFont">
  2724. <b>setAutoScale</b>(enable)
  2725. </div>
  2726. <div class="description">
  2727. Enable or disable autoscaling
  2728. </div>
  2729. <dl class="detailList">
  2730. <dt class="heading">Parameters:</dt>
  2731. <dt>
  2732. <span class="light fixedFont">{boolean}</span> <b>enable</b>
  2733. </dt>
  2734. <dd>If true or not defined, autoscaling is enabled.
  2735. If false, autoscaling is disabled.</dd>
  2736. </dl>
  2737. <hr />
  2738. <a name="setCurrentTime"> </a>
  2739. <div class="fixedFont">
  2740. <b>setCurrentTime</b>(time)
  2741. </div>
  2742. <div class="description">
  2743. Set current time. This function can be used to set the time in the client
  2744. timeline equal with the time on a server.
  2745. </div>
  2746. <dl class="detailList">
  2747. <dt class="heading">Parameters:</dt>
  2748. <dt>
  2749. <span class="light fixedFont">{Date}</span> <b>time</b>
  2750. </dt>
  2751. <dd></dd>
  2752. </dl>
  2753. <hr />
  2754. <a name="setCustomTime"> </a>
  2755. <div class="fixedFont">
  2756. <b>setCustomTime</b>(time)
  2757. </div>
  2758. <div class="description">
  2759. Set custom time.
  2760. The custom time bar can be used to display events in past or future.
  2761. </div>
  2762. <dl class="detailList">
  2763. <dt class="heading">Parameters:</dt>
  2764. <dt>
  2765. <span class="light fixedFont">{Date}</span> <b>time</b>
  2766. </dt>
  2767. <dd></dd>
  2768. </dl>
  2769. <hr />
  2770. <a name="setData"> </a>
  2771. <div class="fixedFont">
  2772. <b>setData</b>(data)
  2773. </div>
  2774. <div class="description">
  2775. Set data for the timeline
  2776. </div>
  2777. <dl class="detailList">
  2778. <dt class="heading">Parameters:</dt>
  2779. <dt>
  2780. <span class="light fixedFont">{google.visualization.DataTable | Array}</span> <b>data</b>
  2781. </dt>
  2782. <dd></dd>
  2783. </dl>
  2784. <hr />
  2785. <a name="setOptions"> </a>
  2786. <div class="fixedFont">
  2787. <b>setOptions</b>(options)
  2788. </div>
  2789. <div class="description">
  2790. Set options for the timeline.
  2791. Timeline must be redrawn afterwards
  2792. </div>
  2793. <dl class="detailList">
  2794. <dt class="heading">Parameters:</dt>
  2795. <dt>
  2796. <span class="light fixedFont">{Object}</span> <b>options</b>
  2797. </dt>
  2798. <dd>A name/value map containing settings for the
  2799. timeline. Optional.</dd>
  2800. </dl>
  2801. <hr />
  2802. <a name="setScale"> </a>
  2803. <div class="fixedFont">
  2804. <b>setScale</b>(scale, step)
  2805. </div>
  2806. <div class="description">
  2807. Set a custom scale. Autoscaling will be disabled.
  2808. For example setScale(SCALE.MINUTES, 5) will result
  2809. in minor steps of 5 minutes, and major steps of an hour.
  2810. </div>
  2811. <dl class="detailList">
  2812. <dt class="heading">Parameters:</dt>
  2813. <dt>
  2814. <span class="light fixedFont">{links.Timeline.StepDate.SCALE}</span> <b>scale</b>
  2815. </dt>
  2816. <dd>A scale. Choose from SCALE.MILLISECOND,
  2817. SCALE.SECOND, SCALE.MINUTE, SCALE.HOUR,
  2818. SCALE.WEEKDAY, SCALE.DAY, SCALE.MONTH,
  2819. SCALE.YEAR.</dd>
  2820. <dt>
  2821. <span class="light fixedFont">{int}</span> <b>step</b>
  2822. </dt>
  2823. <dd>A step size, by default 1. Choose for
  2824. example 1, 2, 5, or 10.</dd>
  2825. </dl>
  2826. <hr />
  2827. <a name="setSelection"> </a>
  2828. <div class="fixedFont">
  2829. <span class="light">{boolean}</span>
  2830. <b>setSelection</b>(selection)
  2831. </div>
  2832. <div class="description">
  2833. Select an event. The visible chart range will be moved such that the selected
  2834. event is placed in the middle.
  2835. For example selection = [{row: 5}];
  2836. </div>
  2837. <dl class="detailList">
  2838. <dt class="heading">Parameters:</dt>
  2839. <dt>
  2840. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>selection</b>
  2841. </dt>
  2842. <dd>An array with a column row, containing the row
  2843. number (the id) of the event to be selected.</dd>
  2844. </dl>
  2845. <dl class="detailList">
  2846. <dt class="heading">Returns:</dt>
  2847. <dd><span class="light fixedFont">{boolean}</span> true if selection is succesfully set, else false.</dd>
  2848. </dl>
  2849. <hr />
  2850. <a name="setSize"> </a>
  2851. <div class="fixedFont">
  2852. <b>setSize</b>(width, height)
  2853. </div>
  2854. <div class="description">
  2855. Set a new size for the timeline
  2856. </div>
  2857. <dl class="detailList">
  2858. <dt class="heading">Parameters:</dt>
  2859. <dt>
  2860. <span class="light fixedFont">{string}</span> <b>width</b>
  2861. </dt>
  2862. <dd>Width in pixels or percentage (for example "800px"
  2863. or "50%")</dd>
  2864. <dt>
  2865. <span class="light fixedFont">{string}</span> <b>height</b>
  2866. </dt>
  2867. <dd>Height in pixels or percentage (for example "400px"
  2868. or "30%")</dd>
  2869. </dl>
  2870. <hr />
  2871. <a name="setVisibleChartRange"> </a>
  2872. <div class="fixedFont">
  2873. <b>setVisibleChartRange</b>(start, end, redraw)
  2874. </div>
  2875. <div class="description">
  2876. Set a new value for the visible range int the timeline.
  2877. Set start undefined to include everything from the earliest date to end.
  2878. Set end undefined to include everything from start to the last date.
  2879. Example usage:
  2880. myTimeline.setVisibleChartRange(new Date("2010-08-22"),
  2881. new Date("2010-09-13"));
  2882. </div>
  2883. <dl class="detailList">
  2884. <dt class="heading">Parameters:</dt>
  2885. <dt>
  2886. <span class="light fixedFont">{Date}</span> <b>start</b>
  2887. </dt>
  2888. <dd>The start date for the timeline. optional</dd>
  2889. <dt>
  2890. <span class="light fixedFont">{Date}</span> <b>end</b>
  2891. </dt>
  2892. <dd>The end date for the timeline. optional</dd>
  2893. <dt>
  2894. <span class="light fixedFont">{boolean}</span> <b>redraw</b>
  2895. </dt>
  2896. <dd>Optional. If true (default) the Timeline is
  2897. directly redrawn</dd>
  2898. </dl>
  2899. <hr />
  2900. <a name="setVisibleChartRangeAuto"> </a>
  2901. <div class="fixedFont">
  2902. <b>setVisibleChartRangeAuto</b>()
  2903. </div>
  2904. <div class="description">
  2905. Change the visible chart range such that all items become visible
  2906. </div>
  2907. <hr />
  2908. <a name="setVisibleChartRangeNow"> </a>
  2909. <div class="fixedFont">
  2910. <b>setVisibleChartRangeNow</b>()
  2911. </div>
  2912. <div class="description">
  2913. Adjust the visible range such that the current time is located in the center
  2914. of the timeline
  2915. </div>
  2916. <hr />
  2917. <a name="stackCalculateFinal"> </a>
  2918. <div class="fixedFont">
  2919. <span class="light">{Object[]}</span>
  2920. <b>stackCalculateFinal</b>(items)
  2921. </div>
  2922. <div class="description">
  2923. Adjust vertical positions of the events such that they don't overlap each
  2924. other.
  2925. </div>
  2926. <dl class="detailList">
  2927. <dt class="heading">Parameters:</dt>
  2928. <dt>
  2929. <span class="light fixedFont">{timeline.Item[]}</span> <b>items</b>
  2930. </dt>
  2931. <dd></dd>
  2932. </dl>
  2933. <dl class="detailList">
  2934. <dt class="heading">Returns:</dt>
  2935. <dd><span class="light fixedFont">{Object[]}</span> finalItems</dd>
  2936. </dl>
  2937. <hr />
  2938. <a name="stackCancelAnimation"> </a>
  2939. <div class="fixedFont">
  2940. <b>stackCancelAnimation</b>()
  2941. </div>
  2942. <div class="description">
  2943. Cancel any running animation
  2944. </div>
  2945. <hr />
  2946. <a name="stackItems"> </a>
  2947. <div class="fixedFont">
  2948. <b>stackItems</b>(animate)
  2949. </div>
  2950. <div class="description">
  2951. Stack the items such that they don't overlap. The items will have a minimal
  2952. distance equal to options.eventMargin.
  2953. </div>
  2954. <dl class="detailList">
  2955. <dt class="heading">Parameters:</dt>
  2956. <dt>
  2957. <span class="light fixedFont">{boolean | undefined}</span> <b>animate</b>
  2958. </dt>
  2959. <dd>if animate is true, the items are
  2960. moved to their new position animated
  2961. defaults to false.</dd>
  2962. </dl>
  2963. <hr />
  2964. <a name="stackItemsCheckOverlap"> </a>
  2965. <div class="fixedFont">
  2966. <span class="light">{Object}</span>
  2967. <b>stackItemsCheckOverlap</b>(items, itemIndex, itemStart, itemEnd)
  2968. </div>
  2969. <div class="description">
  2970. Check if the destiny position of given item overlaps with any
  2971. of the other items from index itemStart to itemEnd.
  2972. </div>
  2973. <dl class="detailList">
  2974. <dt class="heading">Parameters:</dt>
  2975. <dt>
  2976. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>items</b>
  2977. </dt>
  2978. <dd>Array with items</dd>
  2979. <dt>
  2980. <span class="light fixedFont">{int}</span> <b>itemIndex</b>
  2981. </dt>
  2982. <dd>Number of the item to be checked for overlap</dd>
  2983. <dt>
  2984. <span class="light fixedFont">{int}</span> <b>itemStart</b>
  2985. </dt>
  2986. <dd>First item to be checked.</dd>
  2987. <dt>
  2988. <span class="light fixedFont">{int}</span> <b>itemEnd</b>
  2989. </dt>
  2990. <dd>Last item to be checked.</dd>
  2991. </dl>
  2992. <dl class="detailList">
  2993. <dt class="heading">Returns:</dt>
  2994. <dd><span class="light fixedFont">{Object}</span> colliding item, or undefined when no collisions</dd>
  2995. </dl>
  2996. <hr />
  2997. <a name="stackMoveOneStep"> </a>
  2998. <div class="fixedFont">
  2999. <span class="light">{boolean}</span>
  3000. <b>stackMoveOneStep</b>(currentItems, finalItems)
  3001. </div>
  3002. <div class="description">
  3003. Move the events one step in the direction of their final positions
  3004. </div>
  3005. <dl class="detailList">
  3006. <dt class="heading">Parameters:</dt>
  3007. <dt>
  3008. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>currentItems</b>
  3009. </dt>
  3010. <dd>Array with the real items and their current
  3011. positions</dd>
  3012. <dt>
  3013. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>finalItems</b>
  3014. </dt>
  3015. <dd>Array with objects containing the final
  3016. positions of the items</dd>
  3017. </dl>
  3018. <dl class="detailList">
  3019. <dt class="heading">Returns:</dt>
  3020. <dd><span class="light fixedFont">{boolean}</span> arrived True if all items have reached their final
  3021. location, else false</dd>
  3022. </dl>
  3023. <hr />
  3024. <a name="stackMoveToFinal"> </a>
  3025. <div class="fixedFont">
  3026. <b>stackMoveToFinal</b>(currentItems, finalItems)
  3027. </div>
  3028. <div class="description">
  3029. Move the events from their current position to the final position
  3030. </div>
  3031. <dl class="detailList">
  3032. <dt class="heading">Parameters:</dt>
  3033. <dt>
  3034. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>currentItems</b>
  3035. </dt>
  3036. <dd>Array with the real items and their current
  3037. positions</dd>
  3038. <dt>
  3039. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>finalItems</b>
  3040. </dt>
  3041. <dd>Array with objects containing the final
  3042. positions of the items</dd>
  3043. </dl>
  3044. <hr />
  3045. <a name="stackOrder"> </a>
  3046. <div class="fixedFont">
  3047. <span class="light">{<a href="../symbols/Array.html">Array</a>}</span>
  3048. <b>stackOrder</b>(items)
  3049. </div>
  3050. <div class="description">
  3051. Order the items in the array this.items. The default order is determined via:
  3052. - Ranges go before boxes and dots.
  3053. - The item with the oldest start time goes first
  3054. If a custom function has been provided via the stackorder option, then this will be used.
  3055. </div>
  3056. <dl class="detailList">
  3057. <dt class="heading">Parameters:</dt>
  3058. <dt>
  3059. <span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> <b>items</b>
  3060. </dt>
  3061. <dd>Array with items</dd>
  3062. </dl>
  3063. <dl class="detailList">
  3064. <dt class="heading">Returns:</dt>
  3065. <dd><span class="light fixedFont">{<a href="../symbols/Array.html">Array</a>}</span> sortedItems Array with sorted items</dd>
  3066. </dl>
  3067. <hr />
  3068. <a name=".stopPropagation"> </a>
  3069. <div class="fixedFont">&lt;static&gt;
  3070. <span class="light">links.Timeline.</span><b>stopPropagation</b>(event)
  3071. </div>
  3072. <div class="description">
  3073. Stop event propagation
  3074. </div>
  3075. <dl class="detailList">
  3076. <dt class="heading">Parameters:</dt>
  3077. <dt>
  3078. <b>event</b>
  3079. </dt>
  3080. <dd></dd>
  3081. </dl>
  3082. <hr />
  3083. <a name="timeToScreen"> </a>
  3084. <div class="fixedFont">
  3085. <span class="light">{int}</span>
  3086. <b>timeToScreen</b>(time)
  3087. </div>
  3088. <div class="description">
  3089. Convert a datetime (Date object) into a position on the screen
  3090. Before this method can be used, the method calcConversionFactor must be
  3091. executed once.
  3092. </div>
  3093. <dl class="detailList">
  3094. <dt class="heading">Parameters:</dt>
  3095. <dt>
  3096. <span class="light fixedFont">{Date}</span> <b>time</b>
  3097. </dt>
  3098. <dd>A date</dd>
  3099. </dl>
  3100. <dl class="detailList">
  3101. <dt class="heading">Returns:</dt>
  3102. <dd><span class="light fixedFont">{int}</span> x The position on the screen in pixels which corresponds
  3103. with the given date.</dd>
  3104. </dl>
  3105. <hr />
  3106. <a name="trigger"> </a>
  3107. <div class="fixedFont">
  3108. <b>trigger</b>(event)
  3109. </div>
  3110. <div class="description">
  3111. fire an event
  3112. </div>
  3113. <dl class="detailList">
  3114. <dt class="heading">Parameters:</dt>
  3115. <dt>
  3116. <span class="light fixedFont">{String}</span> <b>event</b>
  3117. </dt>
  3118. <dd>The name of an event, for example "rangechange" or "edit"</dd>
  3119. </dl>
  3120. <hr />
  3121. <a name="unselectItem"> </a>
  3122. <div class="fixedFont">
  3123. <b>unselectItem</b>()
  3124. </div>
  3125. <div class="description">
  3126. Unselect the currently selected event (if any)
  3127. </div>
  3128. <hr />
  3129. <a name="updateData"> </a>
  3130. <div class="fixedFont">
  3131. <b>updateData</b>(index, values)
  3132. </div>
  3133. <div class="description">
  3134. Update the original data with changed start, end or group.
  3135. </div>
  3136. <dl class="detailList">
  3137. <dt class="heading">Parameters:</dt>
  3138. <dt>
  3139. <span class="light fixedFont">{Number}</span> <b>index</b>
  3140. </dt>
  3141. <dd></dd>
  3142. <dt>
  3143. <span class="light fixedFont">{Object}</span> <b>values</b>
  3144. </dt>
  3145. <dd>An object containing some of the following parameters:
  3146. {Date} start,
  3147. {Date} end,
  3148. {String} content,
  3149. {String} group</dd>
  3150. </dl>
  3151. <hr />
  3152. <a name="zoom"> </a>
  3153. <div class="fixedFont">
  3154. <b>zoom</b>(zoomFactor, zoomAroundDate)
  3155. </div>
  3156. <div class="description">
  3157. Zoom the timeline the given zoomfactor in or out. Start and end date will
  3158. be adjusted, and the timeline will be redrawn. You can optionally give a
  3159. date around which to zoom.
  3160. For example, try zoomfactor = 0.1 or -0.1
  3161. </div>
  3162. <dl class="detailList">
  3163. <dt class="heading">Parameters:</dt>
  3164. <dt>
  3165. <span class="light fixedFont">{Number}</span> <b>zoomFactor</b>
  3166. </dt>
  3167. <dd>Zooming amount. Positive value will zoom in,
  3168. negative value will zoom out</dd>
  3169. <dt>
  3170. <span class="light fixedFont">{Date}</span> <b>zoomAroundDate</b>
  3171. </dt>
  3172. <dd>Date around which will be zoomed. Optional</dd>
  3173. </dl>
  3174. <!-- ============================== event details ========================= -->
  3175. <hr />
  3176. </div>
  3177. <!-- ============================== footer ================================= -->
  3178. <div class="fineprint" style="clear:both">
  3179. Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.2 on Wed Mar 04 2015 09:58:28 GMT+0100 (CET)
  3180. </div>
  3181. </body>
  3182. </html>