Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add style parameter to barfi.st_barfi #24

Open
GsLogiMaker opened this issue Sep 21, 2023 · 0 comments
Open

[Feature Request] Add style parameter to barfi.st_barfi #24

GsLogiMaker opened this issue Sep 21, 2023 · 0 comments

Comments

@GsLogiMaker
Copy link

It is impossible, or very difficult, to change the styling of Barfi to fit a specific project.

For example, I wanted to remove the Menu and Execute buttons using css because they don't fit the functionality of my program, but the Barfi graph is locked behind an iframe and I could not find a way around it.

I propose that a new parameter, style, should be added to bf.st_barfi, which is a string of css that is inserted into the iframe (I don't know how this would be done, or if it is feasible).

The below example would create a Barfi graph where the color of the backgrounds of the nodes are red.

bf.st_barfi(
    [],
    style="""
        .node > .__content {
            background: red;
        }
    """,
)

Which looks like this:
Screenshot from 2023-09-21 11-34-02

@GsLogiMaker GsLogiMaker changed the title FEATURE REQUEST Add style parameter to barfi.st_barfi [Feature Request] Add style parameter to barfi.st_barfi Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant