delimiter = st.text_input("Enter delimiter (e.g., ',', ';', '\t'):", ',')
This code shows the input box below the label. Is there any way of displaying the input box next to the label without creating columns??
delimiter = st.text_input("Enter delimiter (e.g., ',', ';', '\t'):", ',')
This code shows the input box below the label. Is there any way of displaying the input box next to the label without creating columns??
Hey @pranavagrawal321,
There isn’t a built-in way to change the position of the label (check out the doc for st.text_input
here). You could set the label to be hidden and then add text next to the widget using columns, as you mentioned.
There is an open GitHub Issue for this request here – please upvote it / add your thoughts if you’d like to see it prioritized.
In the absence of a better solution, why not:
a. put all your delimiter options in a list with eg. tlst = (';', ',', '\t')
b. use st.radio with the horizontal parameter set to true, and the above defined list for the options?
Cheers
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.