I have to separate a title from a list and the horizontal line always seems to look nice for separating sections on a page. This was requested here.
I tried to simulate this by setting a label with a background color and changing its fontsize to 0, but the box is still to big to pass as a thin line.
@shaun Iāve never used custom components before. I canāt figure out how to start using this horizontal rule component in an app I made previously. Is it supposed to show up in the tool window somewhere so I can drag/drop?
To use a custom component from the app it is defined in, click on the arrow next to the Form in the App Browser and click āuse as componentā. Then it will appear in the Toolbox:
To use a custom component from AppA in AppB, add AppA as a dependency in AppB. Use the āDependenciesā¦ā dialog in AppB for this:
Youāll get a window with an āAdd a dependencyā dropdown that shows all your apps. Select HorizontalRule and you should see HorizontalRule in the toolbox.
I need a Horizontal Rule as well, but looking at the helpful instructions above, I might need additional guidance because the UI has changed.
So far, Iāve added the Horizontal Rule as a standalone App, where I was notified that the teams needs to enable Python2. But what next when they do that? ā Because the down-downs in the above screenshots seem unavailable to me. Perhaps itās because my personal subscription tier does not permit that UI anymore.
I guess I need a 2022 version of the above.
Thank you in advance!
EDIT: Or perhaps I can simply use a Rich Text Box in Markdown mode, and specify three dashes (ā) to render a Horizontal Rule. That may or may not be the optimal (look & feel, performance, etc), and guidance and/or alternatives is always welcome.
Then I created a role called bottom_thin_border in the theme/role section of the IDE.
If you donāt restrict the role, you can then apply it to any component using the role drop-down in the appearance section of the component properties.
@campopianoa Thank you for the options! Iāll use the first option for now. I have to look into the Canvas option (Iām unfamiliar with it), as well as the HTML custom component also unfamiliar with it. Again, thank you.
@anthonys Thank you for the pointer. Iām reading up on it now, as well.
Thank you. When I get a chance (soon), I walk through your example and see if I can get to understand roles, IDE theme, and then see if I see it in component role-dropdowns (via unrestricted). Thank you for the step-by-step!
Ah, I see it now ā Use as Component ā after clicking a Forms Hamburger Menu. Thank you.
Now, I have learn how to add Horizontal Rule code to a new Form (or add whatever I might need, not just a Horizontal Rule).
But sticking with the Horizontal Rule for a moment to keep things simple, could these steps accomplish it:
Create an new Form
Drag in a Rich-Text-Box in Markdown mode
Type three dashes (ā) in itās Content attribute/field
Finally, select Use as Component for that Form
Perhaps itās a naive / newbie approach (and it may not be the best design pattern - I donāt know), but would it at least work? I guess Iāll try it later (too afraid of messing up my current project. LoL).