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

hyperlink #45

Open
sankar-mukherjee opened this issue Jul 16, 2023 · 3 comments
Open

hyperlink #45

sankar-mukherjee opened this issue Jul 16, 2023 · 3 comments

Comments

@sankar-mukherjee
Copy link

hi

great useful lib.

is it possible to add hyperlink option to the menu. so that some options can point to a hyperlink.

@nicedouble
Copy link

@sankar-mukherjee you can trystreamlit-antd-components menu component to achieve this

@sankar-mukherjee
Copy link
Author

Can you provide how? The codes I mean.

@andreasntr
Copy link

andreasntr commented Oct 30, 2023

@sankar-mukherjee

sac.buttons([
        sac.ButtonsItem('Option 1', icon='...'),
        sac.ButtonsItem('Option 2', icon='...',
                        href='...'),
        sac.ButtonsItem('Option 3', icon='...',
                        href='...')
    ],
        format_func='title',
        key="menu_selection")

then you can style it with CSS as usual

@nicedouble however I think it's not really the same because one could want to have both link buttons and action buttons

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

3 participants