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