ObjectTreeComponent
ObjectTreeComponent
This component displays a plain JavaScript object as an expandable tree.
Example
<vdr-object-tree [value]="payment.metadata"></vdr-object-tree>
Signature
class ObjectTreeComponent implements OnChanges {
@Input() value: { [key: string]: any } | string;
@Input() isArrayItem = false;
depth: number;
expanded: boolean;
valueIsArray: boolean;
entries: Array<{ key: string; value: any }>;
constructor(parent: ObjectTreeComponent)
ngOnChanges() => ;
isObject(value: any) => boolean;
}
- Implements:
OnChanges
value
property
{ [key: string]: any } | string
isArrayItem
property
depth
property
number
expanded
property
boolean
valueIsArray
property
boolean
entries
property
Array<{ key: string; value: any }>
constructor
method
(parent: ObjectTreeComponent) => ObjectTreeComponent
ngOnChanges
method
() =>
isObject
method
(value: any) => boolean