BX.UI.StageFlow
This extension is used for rendering a sequence of [link=11308070]stages[/link] in the item's details top part.
Model is used for:
Class for handling sequence of stages:
BX.UI.StageFlow.Chart
All Colors are specified as HEX (6 characters).
Methods
Method | Description | Available from version |
---|---|---|
constructor(params: {}, stages: []) | Constructor.
params - parameters, have the following structure:
| |
setCurrentStageId(stageId: number): Chart | Modifiers current stage ID and re-renders all stages.
| |
getFinalStage(): ?Stage | Returns object of final pseudo-stage. | |
getStages(): Map | Returns all stages. | |
getFirstFailStage(): ?Stage | Returns object of first unsuccessful stage. | |
getFailStages(): Array | Returns array with all unsuccessful stages. | |
getSuccessStage(): ?Stage | Returns successful stage. | |
getStageById(id: number): ?Stag | Returns stage by its id . | |
render(): Element | Renders stage schedule and returns DOM element. | |
onStageMouseHover(stage: Stage) | Called when hoovering over a mouse pointer to a stage . | |
onStageMouseLeave(stage: Stage) | Called after moving a mouse pointer away from a stage . | |
onStageClick(stage: Stage) | Called when clicking on a stage. | |
onFinalStageClick() | Called upon clicking to a final pseudo-stage. | |
addBackLightUpToStage(stageId: number|string = null, color: string = null) | Fill with color all stages up to the stageId inclusively.
| |
getSemanticSelectorPopup(): Popup | Returns a BX.Main.Popup popup object for selecting final semantics. | |
getFinalStageSemanticSelector(isSuccess: boolean = null): Element | Returns selector for selecting stage semantics.
| |
getFinalStageSelectorPopup(isSuccess: boolean = false): Popup | Returns popup object BX.Main.Popup for selecting a final stage. | |
onSemanticSelectorClick() | Called upon clicking on a selector for final's semantics. | |
getSelectedFinalStage(): ?Stage | Returns final stage selected in the popup. | |
getFailStageName(): ?string | Returns name of selected unsuccessful stage. |
© «Bitrix24», 2001-2024