Timeline base class
Description and methods
Base class for timeline item.
BX.UI.Timeline.Item
Method | Description | Available from version |
---|---|---|
constructor(data: {}) | Constructor.
Parameters:
| |
afterRender() | Called after rendering an item. | |
setIsLast(isLast: boolean): Item | Sets attribute specifying the item to be the last in list. | |
getContainer(): ?Element | returns container with item, if rendered. | |
isRendered(): boolean | Returns true , if item is rendered. | |
getCreatedTime(): ?Date | Returns date of created entry. | |
formatTime(time): string | Returns string with formatted creation time without date. |
Getters and setters
getId(): string|number
getTitle(): ?string
getUserId(): number
getScope(): ?string
isScopeManual(): boolean
isScopeAutomation(): boolean
isScopeTask(): boolean
isScopeRest(): boolean
getItem(): ?{name: ?string}
render(): Element
- Renders an object and returns a container.updateLayout()
- Fully re-renders a content.clearLayout(isSkipContainer = false): Item
- Clears container content and deletes it from document. When passingtrue
, the container will also will cleaned and deleted.getDataForUpdate(): {}
- Returns data required for updating an item.updateData(params: {})
- Updates item's data.update(params: {}): Item
- Updates item's data and re-renders its content.hasMenu(): boolean
- Returnstrue
, when item has a menu.getActions(): Array
- Returns array of items for dropdown menu.renderActionsButton(): Element
- Renders button for dropdown menu.getActionsButton(): ?Element
- Returns button for dropdown menu, if it was rendered.getActionsMenuId(): string
- Returns ID for dropdown menu.getActionsMenu(): Menu
- Returns item's menu.startProgress()
- Shows loader and save processing sate for ajax query.stopProgress()
- Hides loader and resets ajax query processing status.getLoader()
- Returns objectBX.Loader
.
© «Bitrix24», 2001-2024