|
@@ -9,6 +9,7 @@ import * as React from "react";
|
|
export interface ITreeItemSelectableComponentProps {
|
|
export interface ITreeItemSelectableComponentProps {
|
|
entity: any,
|
|
entity: any,
|
|
selectedEntity?: any,
|
|
selectedEntity?: any,
|
|
|
|
+ mustExpand?: boolean,
|
|
offset: number,
|
|
offset: number,
|
|
extensibilityGroups?: IExplorerExtensibilityGroup[],
|
|
extensibilityGroups?: IExplorerExtensibilityGroup[],
|
|
onSelectionChangedObservable?: Observable<any>,
|
|
onSelectionChangedObservable?: Observable<any>,
|
|
@@ -21,7 +22,7 @@ export class TreeItemSelectableComponent extends React.Component<ITreeItemSelect
|
|
constructor(props: ITreeItemSelectableComponentProps) {
|
|
constructor(props: ITreeItemSelectableComponentProps) {
|
|
super(props);
|
|
super(props);
|
|
|
|
|
|
- this.state = { isSelected: this.props.entity === this.props.selectedEntity, isExpanded: Tools.LookForItem(this.props.entity, this.props.selectedEntity) };
|
|
|
|
|
|
+ this.state = { isSelected: this.props.entity === this.props.selectedEntity, isExpanded: this.props.mustExpand || Tools.LookForItem(this.props.entity, this.props.selectedEntity) };
|
|
}
|
|
}
|
|
|
|
|
|
switchExpandedState(): void {
|
|
switchExpandedState(): void {
|