-
Notifications
You must be signed in to change notification settings - Fork 66
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
make the run, restart and restartall buttons optional #502
make the run, restart and restartall buttons optional #502
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
@twyair thanks for the PR 👏 . I've just left a comment so this better aligns with other options. It would also be good to mention this in the documentation - e.g. by adding a note in |
`button_run` -> `mountRunButton` etc.
done. though I'm not sure if what I wrote is clear enough or worded well. |
this looks great - thanks for the addition @twyair one quick question to see what you all think: what about embedding these configuration options in a parent key like "cellButtons", so the structure would be: ...
cellButtons: {
mountRunButton: true,
mountRestartButton: true,
mountRestartallButton: true,
}
... it feels a bit more clearly-scoped that way, since I could imagine a situation where other Thebe buttons might exist on the screen as well. but - tell me if I am over-engineering configuration here :-) I don't feel strongly about it |
The configuration is quite large and flat @choldgraf so i like this idea. Should we go further and group all "ui" related options?
or perhaps:
|
I'd be fine with a UI sub-field (or maybe "cellUI"?), Whatever is the right key name that provides an intuition for what is inside. (Though we should do a depreciation cycle if anything will move that has been released) |
i made the buttons that appear in every cell optional by adding the following boolean options to the config
button_run
,button_restart
,button_restartall
the reason i need this is that i embed the cells in revealjs slides and these buttons just get in the way of actual content