Skip to content

Comments

fix (HelloWorldWidget): adjusted example name to not contain spaces#2

Open
abernh wants to merge 1 commit intomdrideout:mainfrom
abernh:fix_helloworld_getname_example-string-without-spaces
Open

fix (HelloWorldWidget): adjusted example name to not contain spaces#2
abernh wants to merge 1 commit intomdrideout:mainfrom
abernh:fix_helloworld_getname_example-string-without-spaces

Conversation

@abernh
Copy link

@abernh abernh commented Sep 1, 2021

get_name() is used to generate the widget wrapper class name
and spaces dont work nicely in CSS class names

The originally selected name "Hello World" made me to choose similar names for my widgets with spaces and that caused hours of debugging because the JS was not finding its way to display the controllers.

This "fix" simply adjusts the example widget name to follow a "CSS class name"-compatible pattern

get_name() is used to generate the widget wrapper class name spaces
dont work nicely in CSS class names
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