titleBuilder

open override var titleBuilder: (KPage, KPageInventory) -> Component?

If supplied this function is used to build the title for the inventory. When the page switches, this function will be called with the current page