angularjs - Prevent word wrap in angular handsontable -
i'm using nghandsontable , trying prevent word wrapping expanding rows. can see there table option wordwrap doesn't seem work. tried applying in various ways:
ie add in settings object wordwrap: false,
or add class on classname 'htnowrap'
or add attribute on table , column word-wrap=false
<hot-table hot-id="blotter" settings="{wordwrap: false, colheaders: colheaders, classname: 'htcenter htnowrap', contextmenu: ['row_above', 'row_below', 'remove_row']}" row-headers="false" min-spare-rows="minsparerows" datarows="rows"> <!-- sort order? --> <hot-column ng-repeat="column in columns" data="{{column.fieldname}}" title="::column.title" word-wrap="false"> </hot-column> </hot-table>
update:
actually can see using word-wrap="false" on table directive assing htnowrap class on td in table; isnt prevent word wrapping pushing drop-down caret onto next row , expanding row.
.handsontable td.htnowrap { white-space: nowrap; }
try moving wordwrap
settings
directly directive. example:
<hot-table settings="..." word-wrap="false" .. />
Comments
Post a Comment