'Create a grid column.'

def __init__(self, label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None):

    self.label = label
    self.key = key
    self.model_class = model_class
    self.method = method
    self.format = format
    self.link = link
    self.target = target
    self.nowrap = nowrap
    self.attach_popup = attach_popup
    self.visible = visible
    self.filterable = filterable
    self.sortable = ((self.key is not None) and sortable)
    self.label_id_prefix = (label_id_prefix or '')
