Comments (3)
@tprochazka I'm sorry, but it would be too unexpected for me to have this filter applied by default.
The thing is that most of the grids do not have multiline headers and the filter would therefore be called unnecessarily.
But I just added a new block column-label
which you can extend in your template simply as
{define column-label}
{$column->getLabel() |breaklines}
{/define}
so that you don't have to copy-paste all other HTML structure of the cell.
from twigrid.
Great. I'm currently using
{define header-cell}
<th n:class='header-cell, "header-cell-{$column->getName()}"'>
<a href="{$sortLink}" n:class='sort, "sort-{$column->getName()}", tw-ajax' n:tag-if="$column->isSortable()">
{$column->getLabel()|breaklines}
</a>
{include #sort-labels, (expand) get_defined_vars()}
</th>
{/define}
So column-label is much much better.
from twigrid.
Glad to hear that :-)
Closing...
from twigrid.
Related Issues (18)
- Unable to render DataGrid inside snippet using AJAX HOT 2
- Session namespace is non-unique HOT 1
- @deprecated method accessing HOT 1
- composer dependency forcing to download 2.4RC1 HOT 1
- end() expects parameter 1 to be array, null given HOT 5
- Chybějící buňka v patičce HOT 2
- Localization of "No data." message HOT 1
- Possibility to decorate rows/cells HOT 8
- Strange behavior of multiple sort HOT 2
- "multisort" class in all headers HOT 1
- Compatibility with PHP 7.0.19 HOT 4
- Creating default object from empty value (PHP 7.0.10 / TwiGrid 11.2.0) HOT 4
- More than one grid at presenter HOT 5
- build() is called too early in component lifecycle HOT 5
- Assignment inside of latte is now handled like error in Latte 2.9.2 HOT 4
- version 12.0.0 doesn't work with Nette 3.1.1 HOT 1
- Summary row at the end of the Grid HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twigrid.