updates
This commit is contained in:
parent
f74372c56e
commit
4d46d56f8e
@ -79,15 +79,7 @@
|
||||
self.selected = isChecked
|
||||
baseValue = isChecked
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Behavior
|
||||
//--------------------------------------------------
|
||||
|
||||
public func getRequiredBehaviors() -> [PageBehaviorModelProtocol] {
|
||||
[SelectAllBoxesBehaviorModel()]
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Codec
|
||||
//--------------------------------------------------
|
||||
|
||||
@ -41,6 +41,11 @@ public protocol PageLocalDataShareBehavior: 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
|
||||
}
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ public class SelectAllBoxesBehavior: PageCustomActionHandlerBehavior, PageMolecu
|
||||
// MARK: - Delegate
|
||||
//--------------------------------------------------
|
||||
|
||||
var delegate: MVMCoreUIDelegateObject?
|
||||
weak var delegate: MVMCoreUIDelegateObject?
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Init
|
||||
@ -69,13 +69,7 @@ public class SelectAllBoxesBehavior: PageCustomActionHandlerBehavior, PageMolecu
|
||||
// MARK: - Custom Action
|
||||
//--------------------------------------------------
|
||||
|
||||
/// 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.
|
||||
// To select or deselect all controls adhereing to `SelectableMoleculeModel`
|
||||
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
|
||||
|
||||
// Verify we have the correct action type and necessary values.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user