refactored
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
60cefc57a6
commit
de67fd7fb6
@ -8,7 +8,7 @@
|
|||||||
import MVMCore
|
import MVMCore
|
||||||
import VDS
|
import VDS
|
||||||
|
|
||||||
@objcMembers public class RadioBoxModel: FormFieldModel {
|
public class RadioBoxModel: FormFieldModel {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -73,7 +73,7 @@ import VDS
|
|||||||
|
|
||||||
extension Array where Element == RadioBoxModel {
|
extension Array where Element == RadioBoxModel {
|
||||||
internal func convertToVDSRadioBoxModel(surface: Surface) -> [RadioBoxGroup.RadioBoxItemModel] {
|
internal func convertToVDSRadioBoxModel(surface: Surface) -> [RadioBoxGroup.RadioBoxItemModel] {
|
||||||
compactMap({ item in
|
compactMap({ item in
|
||||||
var radioBox = RadioBoxGroup.RadioBoxItemModel()
|
var radioBox = RadioBoxGroup.RadioBoxItemModel()
|
||||||
radioBox.text = item.text
|
radioBox.text = item.text
|
||||||
radioBox.subText = item.subText
|
radioBox.subText = item.subText
|
||||||
@ -81,7 +81,7 @@ extension Array where Element == RadioBoxModel {
|
|||||||
radioBox.surface = surface
|
radioBox.surface = surface
|
||||||
radioBox.selected = item.selected
|
radioBox.selected = item.selected
|
||||||
radioBox.strikethrough = item.strikethrough
|
radioBox.strikethrough = item.strikethrough
|
||||||
radioBox.disabled = !(item.enabled && !item.readOnly)
|
radioBox.disabled = !item.isEnabled
|
||||||
return radioBox
|
return radioBox
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user