Class s7sdk.event.AssetEvent
Dispatched every time a new asset is selected. For example, the Swatches component dispatches an AssetEvent event every time a swatch is selected. An event handler can access the AssetEvent object by reading the s7event property from the DOM event.
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							 
								s7sdk.event.AssetEvent(type, asset, frame, bubbles)
							 
							
						 | 
					
| Field Attributes | Field Name and Description | 
|---|---|
| 
								
								 The ItemDesc that is associated with this frame. 
							 | 
						|
| <static> <constant> | 
								 
								s7sdk.event.AssetEvent.ASSET_CHANGED
								 
								Defines a value of the  
							type property of a assetChanged event object. | 
						
| 
								
								 Specifies whether the event should bubble. 
							 | 
						|
| 
								
								 The index of the frame in the set. 
							 | 
						|
| <static> <constant> | 
								 
								s7sdk.event.AssetEvent.ITEM_SELECTED_EVENT
								 
								Defines the value of the  
							type property of a itemSelectedEvent event object. | 
						
| <static> <constant> | 
								 
								s7sdk.event.AssetEvent.NOTF_SET_PARSED
								 
								Defines a value of the  
							type property of a notfSetParsed event object. | 
						
| <static> <constant> | 
								 
								s7sdk.event.AssetEvent.SWATCH_SELECTED_EVENT
								 
								Defines the value of the  
							type property of a swatchSelectedEvent event object. | 
						
| 
								
								 The type of the particular event object. 
							 | 
						
					Class Detail
				
				
				
						s7sdk.event.AssetEvent(type, asset, frame, bubbles)
				
				
				- Parameters:
 - {String} type
 - Defines the value of the type property.
 - {String} asset
 - The ItemDesc descriptor that is associated with this frame.
 - {Number} frame
 - The index of the frame in the set.
 - {Boolean} bubbles
 - Defines whether the event bubbles.
 
					Field Detail
				
				
					 
					
					
					{ItemDesc}
					asset
					
					
					
						The ItemDesc that is associated with this frame.
						
					
					
					
						
						
						
						
					<static> <constant> 
					
					{String}
					s7sdk.event.AssetEvent.ASSET_CHANGED
					
					
					
						Defines a value of the 
					
					
						
						
						
						
							type property of a assetChanged event object.
						
					- Default Value:
 - assetChanged
 
					
					{Boolean}
					bubbles
					
					
					
						Specifies whether the event should bubble.
						
					
					
					
						
						
						
						
					
					
					{Number}
					frame
					
					
					
						The index of the frame in the set.
						
					
					
					
						
						
						
						
					<static> <constant> 
					
					{String}
					s7sdk.event.AssetEvent.ITEM_SELECTED_EVENT
					
					
					
						Defines the value of the 
					
					
						
						
						
						
							type property of a itemSelectedEvent event object.
						
					- Default Value:
 - itemSelectedEvent
 
<static> <constant> 
					
					{String}
					s7sdk.event.AssetEvent.NOTF_SET_PARSED
					
					
					
						Defines a value of the 
					
					
						
						
						
						
							type property of a notfSetParsed event object.
						
					- Default Value:
 - notfSetParsed
 
<static> <constant> 
					
					{String}
					s7sdk.event.AssetEvent.SWATCH_SELECTED_EVENT
					
					
					
						Defines the value of the 
					
					
						
						
						
						
							type property of a swatchSelectedEvent event object.
						
					- Default Value:
 - swatchSelectedEvent
 
					
					{String}
					type
					
					
					
						The type of the particular event object.