GitHub Issue #3342
It has to do with adding a character counter that changes colors. Any changes to some simple modifications below let me know.
This is just something I have requested in the past and so I can relate to the request. I am going to do my best to put in a PR that can be accepted, and if not at least I tried. Once I figure how all this works hopefully... I will add counters like this in other places desired such as ones that show how many characters are left if there is a max lenght set on the field. I will see about putting these in other parts of modules as well such as Events and this forum. I believe places like the profile page could use them as well.
I have a few issues maybe someone can help with:
Any help is greatly appreciated, quote or pick a number and give the best you can. Hoping some of it makes sense to someone :) Thank you!
https://reactjs.org/docs/jsx-in-depth.html
This page has enlightend me. Looks like I can make a make my own components... lowercase first letter is for general html and can be self closing. Anything capitalized is a user defined component.
This is a fairly simple task that really helps me understand React and Personabar so it is great to learn for the fun of it to help me take that next step up that developer staircase.
So now I wonder if I should create and add some settings that possibly could get set using the CSS file such as when the colors change and what color to change to. But not looking to get too crazy here if I dont have to. Whatever is clever... There is probably a much easier way to do what I have created.
I am going to put for now after the title however Timo suggests wrapping the label with it which probably makes sense as well. The forms are set to a width so I dont think there will be a problem with room.
I will test some things out some more see what happens. I am looking for best direction here, especially if I put the javascript in the right place. It might go deeper in the SiteSettings.js script file. Or it might go in the JSX file, or maybe I need to create a new one...
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.