Onboarding newbies and documentation #1565
Replies: 2 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
I agree! Currently we have only https://nicegui.io/documentation#styling which generally hints to Quasar and mentions props, classes and style. We also have a whole section about layout, showing card, row, column etc. Maybe that is a good place to add a subsection "complex layouts" which explains the general use of css, tailwind etc for arranging elements and link to further documentation in Quasar etc. Anyone interested in creating a pull request for that?
@falkoschindler explained in #247 why we think nesting with context managers is the right way for a layout framework. He also plans a talk at the nex Pycon Ireland about this. But don't get us wrong. We love discussing architecture and design decisions. To not mix up so many topics in one discussion I suggest you create a new one surrounding the possibility to use
I'm not quite sure how that would look like. Could you open a third discussion surrounding that topic and provide some examples? |
Beta Was this translation helpful? Give feedback.
-
First, can I say, this is way above any other package that I've used for trying to make front ends for python projects. I'm a very experienced python developer, but have little to no knowledge of javascript html and css - which I guess is your target group. As I understand the library you have essentially abstracted away all the html and javascript but the user still has to have a knowledge of css. I like the way that you can use tailwind or raw css. However...
I have implemented this and implemented an id system so it was easy to name and refer to elements such as "main_content" above, which allowed easy separation of different parts of the interface I was building which I again I found easier than using context managers. I have 30 lines or so of code that does that if you are interested in adding it as an alternative approach that I'm happy to provide.
I also found it slightly confusing because most of your examples (because they are very simple) don't use context managers. I would have prefered it if you always had to use a context manager even if you were adding items directly to the main page.
These are all minor comments and suggestions, but I thought it might be useful to document the issues I found in the first two days playing with the library. Congratulations on a really excellent and well documented library.
Beta Was this translation helpful? Give feedback.
All reactions