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

Rename "role" to "location" throughout Dash Labs and rename component builder methods #25

Merged
merged 5 commits into from
Jun 4, 2021

Conversation

jonmmease
Copy link
Contributor

This PR makes two changes with the aim of reducing confusion over the use of the "input" and "output" language when talking about templates. See https://community.plotly.com/t/dash-labs-0-2-0/52952/21 for background discussion.

First, the "role" property of templates has been renamed "location". Rather than using roles name "input" and "output" in all templates, each template now specifies more descriptive location names (e.g. "top" and "bottom" for the single card templates, "sidebar" and "main" for the sidebar template, etc.). Templates still specify which location is used by default for Input and Output dependency objects, so this doesn't make the API any more verbose.

Second, the _input / _output suffixes on component builder methods have been removed, and a new_ prefix has been added. So, for example, button_input(...) has been renamed new_button.

The documentation has been updated as well.

@jonmmease jonmmease merged commit 72088fe into main Jun 4, 2021
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

Successfully merging this pull request may close these issues.

1 participant