This commit is contained in:
Kevin G Christiano 2021-07-12 14:44:26 -04:00
parent f74372c56e
commit 4d46d56f8e
3 changed files with 8 additions and 17 deletions

View File

@ -79,15 +79,7 @@
self.selected = isChecked self.selected = isChecked
baseValue = isChecked baseValue = isChecked
} }
//--------------------------------------------------
// MARK: - Behavior
//--------------------------------------------------
public func getRequiredBehaviors() -> [PageBehaviorModelProtocol] {
[SelectAllBoxesBehaviorModel()]
}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Codec // MARK: - Codec
//-------------------------------------------------- //--------------------------------------------------

View File

@ -41,6 +41,11 @@ public protocol PageLocalDataShareBehavior: PageBehaviorProtocol {
public protocol PageCustomActionHandlerBehavior: PageBehaviorProtocol { public protocol PageCustomActionHandlerBehavior: PageBehaviorProtocol {
/// - Parameters:
/// - actionType: The action type of the passed action model.
/// - information: information of the passed action model.
/// - additionalData: Additional information of the
/// - Returns: Boolean determines if the action has been handled.
func handleAction(type actionType: String?, information: [AnyHashable : Any]?, additionalData: [AnyHashable : Any]?) -> Bool func handleAction(type actionType: String?, information: [AnyHashable : Any]?, additionalData: [AnyHashable : Any]?) -> Bool
} }

View File

@ -41,7 +41,7 @@ public class SelectAllBoxesBehavior: PageCustomActionHandlerBehavior, PageMolecu
// MARK: - Delegate // MARK: - Delegate
//-------------------------------------------------- //--------------------------------------------------
var delegate: MVMCoreUIDelegateObject? weak var delegate: MVMCoreUIDelegateObject?
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Init // MARK: - Init
@ -69,13 +69,7 @@ public class SelectAllBoxesBehavior: PageCustomActionHandlerBehavior, PageMolecu
// MARK: - Custom Action // MARK: - Custom Action
//-------------------------------------------------- //--------------------------------------------------
/// To select or deselect all controls adhereing to `SelectableMoleculeModel` // To select or deselect all controls adhereing to `SelectableMoleculeModel`
///
/// - Parameters:
/// - actionType: The action type of the passed action model.
/// - information: information of the passed action model.
/// - additionalData: Additional information of the
/// - Returns: Boolean determines if the action has been handled.
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool { public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
// Verify we have the correct action type and necessary values. // Verify we have the correct action type and necessary values.