Min Su Sun Posted May 2, 2023 Posted May 2, 2023 I want to create more than two lines of display text content in the current Action Control. Is there a way?
Fredrik Rosell Posted May 2, 2023 Posted May 2, 2023 Hello,One way could be be to use css styling, so you can style your buttons as you see fit. There is a Dr. Spotfire on this topic, where the steps involved in doing this are described - "Create Fancy and Stylish Buttons in Spotfire": .Here's an example I created to test this (note: this uses a Link styled as a button - not a Button):
Min Su Sun Posted May 3, 2023 Author Posted May 3, 2023 Thank you for answer. I'm Dr. I watched the Spotfire YouTube video. But I couldn't find what I was looking for. The reason is that I don't know CSS very well.Could you please share the css you did as an example?
Fredrik Rosell Posted May 3, 2023 Posted May 3, 2023 Hello,The Dr. Spotfire session covers the technique, but for exact styling, you can then (as in the video) refer to (external) css references/tools to get the styling you want.From googling, setting white-space:normal and the width was one way to get multi lines so that's what I used. So note, this particular example does not allow you to set new line characters in the "button" text at the exact desired locations, but gives a way to split the text into multiple lines based on the width. My CSS (Edit: I'm afraid I keep getting blocked from posting the actual css code, but this image should illustrate the key part)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now