feat(header): Add feature to use function to format header label

In order to do more complex header formats it is also possible to specify a function instead of a format string. One example on how this can be used is to make labels with two dates e.g. 'date - endDate'.