From 0bf04ebae83f28fb7988b9b3ea9ad56e927be5ec Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Sat, 16 Jul 2016 01:33:59 +0300 Subject: [PATCH] add action --- Sources/TableRow.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/TableRow.swift b/Sources/TableRow.swift index 3dac46b..7c1e70e 100644 --- a/Sources/TableRow.swift +++ b/Sources/TableRow.swift @@ -93,4 +93,10 @@ public class TableRow(type: TableRowActionType, handler: (data: TableRowActionData) -> T) -> Self { + + actions[type.key] = TableRowAction(type, handler: handler) + return self + } } \ No newline at end of file