An INodeStyle for tables.
Remarks
Type Details
- yfiles module
- view-table
- yfiles-umd modules
- view-table, view
- Legacy UMD name
- yfiles.styles.TableNodeStyle
See Also
Constructors
Constructor with a custom renderer implementation that uses table
as backing table model.
Parameters
A map of options to pass to the method.
- table - ITable
- The table instance that defines the tabular structure.
- renderer - TableNodeStyleRenderer
- Custom renderer instance for this style.
- tableRenderingOrder - TableRenderingOrder
The order in which rows and columns are rendered. This option sets the tableRenderingOrder property on the created object.
- backgroundStyle - INodeStyle
The style that is used to draw the background of the table. This option sets the backgroundStyle property on the created object.
Properties
Gets or sets the style that is used to draw the background of the table.
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given node and this style instance.
Remarks
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)
See Also
Implements
Gets or sets the order in which rows and columns are rendered.
See Also
Methods
Create a clone of this object.
Create a copy of the background style when this style instance is cloned
Parameters
A map of options to pass to the method.
- style - INodeStyle
- The original background node style
Returns
- ↪INodeStyle
- This implementation always returns the original
style
instance.
Create a copy of the table when this style instance is cloned
Raises the PropertyChanged event.
Remarks
Parameters
A map of options to pass to the method.
- evt - PropertyChangedEventArgs
- The PropertyChangedEventArgs instance containing the event data.
Events
Occurs when the value of the table property changes.
Overrides
Event Registration
addPropertyChangedListener(function(this, PropertyChangedEventArgs):void)
Event Deregistration
removePropertyChangedListener(function(this, PropertyChangedEventArgs):void)
Signature Details
function(sender: any, args: PropertyChangedEventArgs)
Parameters
- sender - any
- The object which dispatched the event.
- args - PropertyChangedEventArgs
- The arguments which define the change.