Skip to main content
Question

Creating simple input / textbox using compact scalar

  • August 14, 2026
  • 6 replies
  • 26 views

gdiepen
AIMMS Champ
Forum|alt.badge.img+7

Hope anybody has a quick solution for something I have not been able to solve yet….

 

My goal is to have a scalar widget that uses (almost) all of the available width for the textbox.

 

So what I have is a string parameter and I show it in a scalar widget for which I enabled compact mode and it shows it like this:

 

As you can see, there is the … to indicate the full string parameter is not shown. I do not want to show the label spMyStringParameter. Even if I delete that label in the developer console of the browser, the actual input box still does not use the full width.

 

Is it somehow possible with adding some CSS to have the input box use the full width of the widget (as a single line, I do not want a multiline textbox)

6 replies

gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • Author
  • AIMMS Champ
  • August 21, 2026

Nobody having the same need to have the actual input text box use the full width of the white area?


Forum|alt.badge.img+3
  • Ace
  • August 24, 2026

You are not alone :)  I also like that have this


Forum|alt.badge.img+3
  • Ace
  • August 24, 2026

use Label? 


gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • Author
  • AIMMS Champ
  • August 24, 2026

As far as I know a label is a readonly widget?

 

I want the user to have just a textbox that is the full-width of the parent component it is in and does not have any internal blocked areas


gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • Author
  • AIMMS Champ
  • August 24, 2026

I found one other way, namely using a table and hide the row and col headers, but this seems a bit of a duct-tape solution to me….


Forum|alt.badge.img+3
  • Ace
  • August 24, 2026

yes true and agree


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator