updates
This commit is contained in:
parent
f74372c56e
commit
4d46d56f8e
@ -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
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user