This class defines a handler for key/data elements.
Type Details
- yfiles module
- view-graphml
- yfiles-umd modules
- view-graphml, view
- Legacy UMD name
- yfiles.graphml.IInputHandler
See Also
Properties
Gets the parse precedence that is associated with this instance.
Methods
This method is invoked when no data tag is defined, and the default value should be applied.
Parameters
A map of options to pass to the method.
- context - IParseContext
- the current parse context.
This method is invoked each time a data element with matching key is processed.
Parameters
A map of options to pass to the method.
- context - IParseContext
- the current parse context.
- node - Node
- the DOM node representing the data element.
See Also
Static Methods
Creates an implementation of the interface IInputHandler from the given definition.
Remarks
Parameters
A map of options to pass to the method.
- parseData - function(IParseContext, Node):void
This method is invoked each time a data element with matching key is processed.
This property holds the implementation for parseData.
- applyDefault - function(IParseContext):void
This method is invoked when no data tag is defined, and the default value should be applied.
This property holds the implementation for applyDefault.
- precedence - ParsePrecedence
Gets the parse precedence that is associated with this instance.
This property holds the implementation for precedence.
Returns
- ↪IInputHandler
- An instance of the IInputHandler interface based on the given definition.