Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Parent Item Selection In Dropdown #4705

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

thecalcc
Copy link
Contributor

@thecalcc thecalcc commented Dec 13, 2024

STT-63

@thecalcc thecalcc changed the title Rework dropdown fields Enable Parent Item Selection In Dropdown Dec 18, 2024
@@ -80,6 +80,7 @@ export class EditorUsingManualSourceOrVocabulary extends React.PureComponent<IPr
kind="synchronous"
getOptions={() => options}
values={selected}
canSelectBranchWithChildren={config.canSelectBranchWithChildren}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep capability to allow/disallow based on a tree node

canSelectBranchWithChildren?(branch: ITreeNode<unknown>): boolean;

optionTemplate?: React.ComponentType<{item: unknown}>;
valueTemplate?: React.ComponentType<{item: unknown}>;
multiple: boolean;
}

/**
* @deprecated Use IDropdownConfigManualSource/IDropdownConfigVocabulary/IDropdownConfigRemoteSource
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be removed instead of deprecating?

optionTemplate?: React.ComponentType<{item: unknown}>;
valueTemplate?: React.ComponentType<{item: unknown}>;
multiple: boolean;
}

/**
* @deprecated Use IDropdownConfigManualSource/IDropdownConfigVocabulary/IDropdownConfigRemoteSource
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need to deprecate it. Maybe it's enough to warn not to use this one if use case can be satisfied using other dropdown sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants