Widgets

Custom Steps

1.1.1

Custom Steps

Anwendungscode

let current := this;
let list := (select 'Pipeline Steps');
let data := {
		uniqueId: "Pipeline 1",
		settings: {
			height: "200px",
			colorLabel: "",
			fontSizeLabel: "",
			colorValue: "",
			borderColor: "#ffffff",
			backgroundColor: "#ffffff",
			align: "center",
			showStepsConnection: true
		},
		steps: list.[{
				
				title: Bezeichnung,
				value: 'Schritt-Nummer',
				subtitle: "",
				colorValue: if number(Nr) <= number(current.Step) then
					"#ffffff"
				else
					"#999999"
				end,
				backgroundColor: if number(Nr) <= number(current.Step) then
					"#4970ff"
				else
					"#cccccc"
				end,
				actions: [{
						recordId: current.Nr,
						type: "update",
						field: "D",
						value: number(Nr),
						headerAction: true
					}]
			}]
	};
arcCustomSteps(data)