☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

The simplest way for controling TextIput dimensions

Community Support
Andrejus_Antoninovas
Andrejus_Antoninovas

As far as i understand there is no way for complete control of TextInput dimensions, I need to be able to make it shorter then a default, but i am not sure how can do it: changing html stuff, python or maybe someone can put simple code that i can change according without learing javascript or other stuff.

⌁   Link to post
Raphael_Walker1
Raphael_Walker1

Hi Andrejus,

My trick is to set the *name* attribute of *TextInput*:

detail_low_input = TextInput(name='low_short', value="10.2", title="Low")

and in my css-file I have:

.bk-widget input[name$="_short"] {
min-width: 100px;
}

Hope this workaround helps.

Raphael

···

On 2016-11-02 11:40, Andrejus
Antoninovas wrote:

    As far as i understand there is no way for complete

control of TextInput dimensions, I need to be able to make it
shorter then a default, but i am not sure how can do it:
changing html stuff, python or maybe someone can put simple code
that i can change according without learing javascript or other
stuff.

–

  You received this message because you are subscribed to the Google

Groups “Bokeh Discussion - Public” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to bokeh+unsubscribe@continuum.io.

  To post to this group, send email to bokeh@continuum.io.

  To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/f0b8ef19-813b-483c-a584-c0867590eb36%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/f0b8ef19-813b-483c-a584-c0867590eb36%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
⌁   Link to post
Andrejus_Antoninovas
Andrejus_Antoninovas

Thanks, i will try.

···

On Wed, Nov 2, 2016 at 1:47 PM, Raphael Walker web@busino.ch wrote:

Hi Andrejus,

My trick is to set the *name* attribute of *TextInput*:

detail_low_input = TextInput(name='low_short', value="10.2", title="Low")

and in my css-file I have:

.bk-widget input[name$="_short"] {
min-width: 100px;
}

Hope this workaround helps.

Raphael

  On 2016-11-02 11:40, Andrejus

Antoninovas wrote:

    As far as i understand there is no way for complete

control of TextInput dimensions, I need to be able to make it
shorter then a default, but i am not sure how can do it:
changing html stuff, python or maybe someone can put simple code
that i can change according without learing javascript or other
stuff.

–

  You received this message because you are subscribed to the Google

Groups “Bokeh Discussion - Public” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to bokeh+unsubscribe@continuum.io.

  To post to this group, send email to bokeh@continuum.io.

  To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/f0b8ef19-813b-483c-a584-c0867590eb36%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/f0b8ef19-813b-483c-a584-c0867590eb36%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e1ca919c-a23b-3f2d-0308-5032ee40a0f2%40busino.ch.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post

End of archived discussion · Replies are disabled