Custom pagination component implementation

Implements custom pagination similar to how custom rows are implemented.