Class links.Timeline.ItemFloatingRange
Extends
links.Timeline.Item.
Defined in: timeline.js.
Constructor Attributes | Constructor Name and Description |
---|---|
links.Timeline.ItemFloatingRange(data, options)
|
Method Attributes | Method Name and Description |
---|---|
Creates the DOM for the item, depending on its type
|
|
getLeft(timeline)
Calculate the left position of the item
|
|
getRight(timeline)
Calculate the right position of the item
|
|
getWidth(timeline)
Calculate the width of the item
|
|
hideDOM()
Remove the items DOM from the current HTML container
The DOM will be kept in memory
|
|
isVisible(start, end)
Check if the item is visible in the timeline, and not part of a cluster
|
|
select()
Select the item
|
|
setPosition(left, right)
Reposition the item
|
|
showDOM(container)
Append the items DOM to the given HTML container.
|
|
unselect()
Unselect the item
|
|
Update the DOM of the item.
|
|
updatePosition(timeline)
Reposition the item, recalculate its left, top, and width, using the current
range of the timeline and the timeline options.
|
- Methods borrowed from class links.Timeline.Item:
- getImageUrls, isRendered, reflow
Class Detail
links.Timeline.ItemFloatingRange(data, options)
- Parameters:
- {Object} data
- Object containing parameters start, end content, group, type, className, editable.
- {Object} options Optional
- Options to set initial property values {Number} top {Number} left {Number} width {Number} height
Method Detail
{Element | undefined}
createDOM()
Creates the DOM for the item, depending on its type
- Returns:
- {Element | undefined}
{Number}
getLeft(timeline)
Calculate the left position of the item
- Parameters:
- {links.Timeline} timeline
- Returns:
- {Number} left
{Number}
getRight(timeline)
Calculate the right position of the item
- Parameters:
- {links.Timeline} timeline
- Returns:
- {Number} right
{Number}
getWidth(timeline)
Calculate the width of the item
- Parameters:
- {links.Timeline} timeline
- Returns:
- {Number} width
hideDOM()
Remove the items DOM from the current HTML container
The DOM will be kept in memory
{boolean}
isVisible(start, end)
Check if the item is visible in the timeline, and not part of a cluster
- Parameters:
- {Number} start
- {Number} end
- Returns:
- {boolean} visible
select()
Select the item
setPosition(left, right)
Reposition the item
- Parameters:
- {Number} left
- {Number} right
showDOM(container)
Append the items DOM to the given HTML container. If items DOM does not yet
exist, it will be created first.
- Parameters:
- {Element} container
unselect()
Unselect the item
updateDOM()
Update the DOM of the item. This will update the content and the classes
of the item
updatePosition(timeline)
Reposition the item, recalculate its left, top, and width, using the current
range of the timeline and the timeline options. *
- Parameters:
- {links.Timeline} timeline