//
//  ActionPopTableView.h
//  kneet
//
//  Created by Jason Lee on 5/15/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

@import UIKit;
#import "ItemModel.h"
#import "CustomAlertView.h"

@protocol ActionPopTableViewDelegate <NSObject>

@optional
- (void)didSelectAction:(ItemModel *)action;

@end

@interface ActionPopTableView : CustomAlertView

@property (assign, nonatomic) BOOL isRuleMode;
@property (weak, nonatomic) id <ActionPopTableViewDelegate> delegate;

@property (strong, nonatomic) NSArray<ItemModel> *actions;

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *tableViewHeightConstraint;

- (id)initFromNib;
//- (void)resetAction:(ItemModel *)action;

@end

@class CustomLabel;
@class CustomButton;

@interface ActionPopTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet CustomButton *btnSelect;
@property (weak, nonatomic) IBOutlet CustomLabel *lblActionName;
@property (weak, nonatomic) IBOutlet CustomLabel *lblActionCount;

@end
