Jump to:

5514 Posts in 1733 Topics by 1219 members

Customising the CMS

SilverStripe Forums » Customising the CMS » TextareaField with 100% width

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 305 Views
  • cybesun
    Avatar
    Community Member
    5 Posts

    TextareaField with 100% width Link to this post

    Hi All,

    I've a DataObject which has a field "welcomeMessage" of type "Text".

    Now in the CMS you see a text-area field, but I'd like to have 100% width ( like the HTML editor ).

    It doesn't work if I increase the columns field on TextareaField.

  • Devlin
    Avatar
    Community Member
    215 Posts

    Re: TextareaField with 100% width Link to this post

    TextareaField::create('test')
       // move label above the field
       ->addExtraClass('stacked')
       // overwrite max-width from screen.css
       ->setAttribute('style', 'max-width:100%')

  • cybesun
    Avatar
    Community Member
    5 Posts

    Re: TextareaField with 100% width Link to this post

    Thanks a lot!

    305 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.