FWTextComponentViewModel
final class FWTextComponentViewModel : FWComponentViewModel
                Object responsible for handling all the data handling and business logic of the FWTextComponentView.
- 
                  
                  
View responsible for receiving the method calls of the ViewModel.
Declaration
Swift
weak var delegate: FWTextComponentViewModelDelegate 
- 
                  
                  
Initializes viewModel for
FWTextComponentView.Declaration
Swift
init(model: FWTextModel)Parameters
modelData source for the multiline component.
 
- 
                  
                  
Title of the component.
Declaration
Swift
var title: String { get } - 
                  
                  
Description of the component.
Declaration
Swift
var description: String { get } - 
                  
                  
Required of the component.
Declaration
Swift
var required: Bool { get } - 
                  
                  
Placeholder of the component.
Declaration
Swift
var placeholder: String { get } - 
                  
                  
Type of the component.
Declaration
Swift
var type: FWComponentModelWrapper.Types { get } - 
                  
                  
Rule for the validator of this component.
Declaration
Swift
var validatorRuleMessage: String { get } - 
                  
                  
Boolean value indicating if the current input is valid.
Declaration
Swift
var isValid: Bool { get set } - 
                  
                  
Content of the component inputted by the user.
Declaration
Swift
var content: String { get set } - 
                  
                  
Returns a snapshot of the component containing all the information currently stored in them.
Declaration
Swift
func takeSnapshot() -> FWComponentSnapshotReturn Value
FWComponentSnapshotcontaining the information of the component. 
            View on GitHub
          
      FWTextComponentViewModel Class Reference