add RATreeView as source
This commit is contained in:
31
doric-iOS/Devkit/Classes/RATreeView/RABatchChangeEntity.h
Normal file
31
doric-iOS/Devkit/Classes/RATreeView/RABatchChangeEntity.h
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// RABatchChangesEntity.h
|
||||
// RATreeView
|
||||
//
|
||||
// Created by Rafal Augustyniak on 17/11/15.
|
||||
// Copyright © 2015 Rafal Augustyniak. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
|
||||
typedef NS_ENUM(NSInteger, RABatchChangeType) {
|
||||
RABatchChangeTypeItemRowInsertion = 0,
|
||||
RABatchChangeTypeItemRowExpansion,
|
||||
RABatchChangeTypeItemRowDeletion,
|
||||
RABatchChangeTypeItemRowCollapse,
|
||||
RABatchChangeTypeItemMove
|
||||
};
|
||||
|
||||
|
||||
@interface RABatchChangeEntity : NSObject
|
||||
|
||||
@property (nonatomic) RABatchChangeType type;
|
||||
@property (nonatomic) NSInteger ranking;
|
||||
@property (nonatomic, copy) void(^updatesBlock)();
|
||||
|
||||
+ (instancetype)batchChangeEntityWithBlock:(void(^)())updates type:(RABatchChangeType)type ranking:(NSInteger)ranking;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user