OHIF-333: Split Button (#1988)
* ohif-333: add component foundation * ohif-333: add expandable content and mocked data * ohif-333: improve ListMenu component for the new toolbar button and add radio behavior * ohif-333: add click outside behavior and update primary and secondary props * ohif-333: separate classes from markup * ohif-333: fix layout issues * ohif-333: extract window level component * ohif-333: update component returns * ohif-333: update chevron thickness * ohif-333: remove is active prop * Delete lerna-debug.log * ohif-333: clean toolbar and use example in ui package * ohif-333: update styles to avoid word break * ohif-333: fix ui package build Co-authored-by: Erik Ziegler <erik.sweed@gmail.com> Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
This commit is contained in:
31 files changed
+399
-939
No files matched your search
@@ -101,10 +101,10 @@ function ToolbarSecondary({ servicesManager }) {
|
||||
if (
|
||||
btn.props &&
|
||||
btn.props.commands &&
|
||||
evt.value &&
|
||||
btn.props.commands[evt.value]
|
||||
evt.item && evt.item.value &&
|
||||
btn.props.commands[evt.item.value]
|
||||
) {
|
||||
const { commandName, commandOptions } = btn.props.commands[evt.value];
|
||||
const { commandName, commandOptions } = btn.props.commands[evt.item.value];
|
||||
commandsManager.runCommand(commandName, commandOptions);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user