Allow passing None
to Grid.set_joiner()
doing so will remove the joiner
This commit is contained in:
parent
f8e98a5817
commit
14f67746bf
|
@ -115,6 +115,9 @@ class Grid(object):
|
|||
self.columns.remove(key)
|
||||
|
||||
def set_joiner(self, key, joiner):
|
||||
if joiner is None:
|
||||
self.joiners.pop(key, None)
|
||||
else:
|
||||
self.joiners[key] = joiner
|
||||
|
||||
def set_sorter(self, key, *args, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue