NatRadioButtonGroup
public final class NatRadioButtonGroup
NatRadioButtonGroup is a class to manage a group of RadioButton components from the design system.
Example of usage:
radioButtonGroup.configure(radioButtons: [radioButton1, radioButton2, …])
radioButtonGroup.configure(selectionHandler: { selectedRadioButton in // Code })
-
Undocumented
Declaration
Swift
public init()
-
Attribute that sets the radioButtons group
Declaration
Swift
public func configure(radioButtons: [NatRadioButton]) -
Sets the handler to be executed when
selectedRadioButtonvalue changesDeclaration
Swift
public func configure(selectionHandler: @escaping (NatRadioButton?) -> Void)Parameters
selectionHandlerA closure to notify value change