BBAPanelGridView.h
1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// BBAPanelGridView.h
// BBAUIKit
//
// Created by Guo,Zhaozhuo on 2020/3/18.
// Copyright © 2020 Baidu. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BBAPanelCommon.h"
#import "BBAPanelItem.h"
#import "BBAPanelGridViewCell.h"
#import "BBAPanelGridGroupModel.h"
#import "BBAPanelConfigModel.h"
typedef void(^BBAPanelGridItemDidSelectCallBack)(BBAPanelItem *action);
typedef void(^BBAPanelGridItemDisplayCallBack)(UIView *itemView, NSIndexPath *indexPath);
@interface BBAPanelGridView : UIView
/// 返回给panelcontoller的callback
@property (nonatomic, copy) BBAPanelGridItemDidSelectCallBack itemDidSelected;
/// cell WillDisplay CallBack
@property (nonatomic, copy) BBAPanelGridItemDisplayCallBack itemViewWillDisplay;
/// cell DidEndDisplay CallBack
@property (nonatomic, copy) BBAPanelGridItemDisplayCallBack itemViewDidEndDisplay;
- (instancetype)initWithFrame:(CGRect)frame
groupModel:(BBAPanelGridGroupModel *)model
config:(BBAPanelConfigModel *)config;
- (void)reloadData;
- (void)reloadItems:(NSArray *)items;
- (UIView *)gridItemViewindexPath:(NSIndexPath *)indexPath;
@end