Replies: 4 comments 1 reply
-
|
Hi ! I agree on principle that we should strive for consistency, but could you be more specific as to what components you are suggesting to change ? I think for instance that |
Beta Was this translation helpful? Give feedback.
-
|
If you can't decide between content, contents and description, just follow what you did in component "text". It's just crazy to have to look up the manual because of the (abstractly speaking) same thing uses content instead of contents or description with the very component in question. In the same sense, cards -> footer + link is possible, whereas footer_md + link is not. I understand the reason behind it, but user friendly is different. SQLPage is super nice to work with, but this "debris" accumulated over time makes it hard to love it. |
Beta Was this translation helpful? Give feedback.
-
|
It is true that there is sometimes a lack of consistency between the names of parameters in different components. However, aside from the difficulty of finding terms that resolve these consistency issues, it is important to bear in mind that a change in a new version of sqlpage could cause problems for apps created using older versions. However, sqlpage is flexible and allows you to create custom components. In my case, I find it is a shame that the ‘title’ parameter is available in the “list” component but not in the ‘table’ component. I got round this by creating a custom component that I use every time. It’s perfectly possible to create custom components using “content” (or whatever term feels most intuitive to you, such as “description”) instead of “contents”. It takes just five minutes to code, but it saves you from having to think about it later when you use a particular component. |
Beta Was this translation helpful? Give feedback.
-
|
If you have concrete suggestions of renaming and deprecation, they are welcome. But as I said above, just a broad phase out the use of contents in favor of description everywhere is IMHO not desirable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Depending on the component, the same thing is achieved by three different names. Is there any chance to allow slowly phase out the use of content | contents in favor of description? It's just confusing and annoying to get trapped by such a minor thing every now and then … Maybe allowing description in all such occasions for the time being, and changing the manual pages to description to avoid new code is written using content | contents.
Beta Was this translation helpful? Give feedback.
All reactions