LT-253: Creating radio group component

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-07-22 11:12:04 +02:00
1 parent cb875b1913
commit 9d31b49997
19 files changed
+180 -88

No files matched your search

@@ -16,8 +16,9 @@ OHIF.mixins.groupRadio = new OHIF.Mixin({
// Get the selected radio's value or select a radio based on value
component.value = value => {
const isGet = _.isUndefined(value);
const $elements = $();
component.registeredItems.forEach(child => $elements.add(child.$element));
const elements = [];
component.registeredItems.forEach(child => elements.push(child.$element[0]));
const $elements = $(elements);
if (isGet) {
return $elements.filter(':checked').val();
}