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

[TubePlayer] Module 9 - Copying/Pasting template code feels clumsy and difficult #139

Open
kazo0 opened this issue Nov 15, 2023 · 1 comment

Comments

@kazo0
Copy link
Contributor

kazo0 commented Nov 15, 2023

Trying to refactor/move large chunks of code around leads to a lot of confusion for people when trying to deal with all the trailing brackets and semicolons that need to be moved around.

We need to think of a better way to walk people through:

  1. Refactoring the ListView ItemTemplate into the VideoItemTemplate method
  2. Moving the ListView into the FeedView ValueTemplate
  3. Adding the other FeedView templates

Trying to get people to copy just the right section of code from the generated pages for NoneTemplate/ErrorTemplate in the plugin is very difficult

@kazo0
Copy link
Contributor Author

kazo0 commented Nov 15, 2023

I think the right fix is going to be to use custom UserControls for those chunks of cod, so then people can select the Error State/None Template in the picker and have the code scoped to just the content they need to copy:

image

image

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