Skip to content

Pass Custom TabBarRender to FloatLayout? #2

@mhallrt

Description

@mhallrt

Hey thanks for such a great addition to the phosphor library. I'm trying to render a custom tab bar, so I would like to pass my own renderer to the the DockLayout contained inside FloatLayout. Any way we can configure the FloatArea to pass the render to the FloatLayout which then uses it to instantiate the DockPanel?

Also on an unrelated note, do you have a standard way to integrate this with saving and restoring?
Currently I'm extending the FloatArea class, then overriding the processMessage method to listen for a couple events like "dialog-update" to save the current absolute position of the div, as well as call "saveLayout" on the underlying DockPanel in order to restore the layout later on. It works, but I'm wondering if there is a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions