@staticmethod
def _transform_droplist(data_drop):
    """
        Create the droplists for the table elements

        :return List of dictionaries with keys text and link
        """
    link_list = []
    if isinstance(data_drop, str):
        raise Exception('Links with only strings must not be in a list')
    if not isinstance(data_drop, list):
        data_drop = [data_drop]
    for i in range(len(data_drop)):
        link_list_element = []
        if not isinstance(data_drop[i], list):
            data_drop[i] = [data_drop[i]]
        for j in range(len(data_drop[i])):
            if 'text' not in data_drop[i][j]:
                raise Exception('Text missing in droplist link')
            elif 'link' not in data_drop[i][j]:
                raise Exception('Link missing in droplist link')
            text = data_drop[i][j]['text']
            link = data_drop[i][j]['link']
            link_list_element.append({'text': text, 'link': link})
        link_list.append(link_list_element)
    return link_list
