@@ -13,6 +13,7 @@ export class StepModelBuilder<TStep extends Step> {
1313	private  _label ?: string ; 
1414	private  _description ?: string ; 
1515	private  _category ?: string ; 
16+ 	private  _toolbox  =  true ; 
1617	private  _validator ?: StepValidator ; 
1718	private  readonly  nameBuilder  =  new  PropertyModelBuilder < string > ( namePath ,  this . circularDependencyDetector ) ; 
1819	private  readonly  propertyBuilder : PropertyModelBuilder [ ]  =  [ ] ; 
@@ -57,6 +58,16 @@ export class StepModelBuilder<TStep extends Step> {
5758		return  this ; 
5859	} 
5960
61+ 	/** 
62+ 	 * Sets whether the step should be displayed in the toolbox. Default is `true`. 
63+ 	 * @param  toolbox Whether the step should be displayed in the toolbox. 
64+ 	 * @example  `builder.toolbox(false);` 
65+ 	 */ 
66+ 	public  toolbox ( toolbox : boolean ) : this { 
67+ 		this . _toolbox  =  toolbox ; 
68+ 		return  this ; 
69+ 	} 
70+ 
6071	/** 
6172	 * Sets the validator of the step. 
6273	 * @param  validator The validator. 
@@ -103,6 +114,7 @@ export class StepModelBuilder<TStep extends Step> {
103114			label : this . _label  ??  buildLabel ( this . type ) , 
104115			category : this . _category , 
105116			description : this . _description , 
117+ 			toolbox : this . _toolbox , 
106118			validator : this . _validator , 
107119			name : this . nameBuilder . build ( ) , 
108120			properties : this . propertyBuilder . map ( builder  =>  builder . build ( ) ) 
0 commit comments