After same experiments I stop by following:
public static final class IssueHeadersToolbar extends HeadersToolbar {
public IssueHeadersToolbar(DataTable table, ISortStateLocator
stateLocator) {
super(table, stateLocator);
get("headers:1:header").add(new Attribu
I added a class "check" to the first header element by next code:
List columns = new ArrayList();
columns.add(new AbstractColumn(new Model("")) {
@Override public Component getHeader(String componentId) {
return new IssueSelectionFragment(componentId,
"ch
I added a class "check" to the first header element by next code:
issues = new DataTable("issues", columns.toArray(new
IColumn[columns.size()]), issueListProvider, itemsPerPage) {
@Override protected Item newRowItem(String id, int index, IModel
model) {
You can create your own toolbars. It is not hard and will give you
everything you ever wanted. We had a design where the filter bar is
not aligned with each column, but just fills from left to right, with
a header between etc.
The easiest way was just to create my own filter bar and be done with
i
Igor Vaynberg wrote:
> what if you have two datatables on a page? then your ids are no longer
> unique.
that is why classes should be used...
--
Leszek Gawron
-
Take Surveys. Earn Cash. Influence the Future of IT
Join Sour
lets see a patch of what you want-IgorOn 10/6/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:
I think there are two cases:1. Improve the look of all tables generated by DefaultDataTable
This can be done by adding id and class attributes to and 2. Tune the appearence of a special table. This can
I think there are two cases:
1. Improve the look of all tables generated by DefaultDataTable
This can be done by adding id and class attributes to and
2. Tune the appearence of a special table.
This can still be done by surrounding the table with a tag
having an id. E.g.
HTML:
He
what if you have two datatables on a page? then your ids are no longer unique.On 10/6/06, Stefan Lindner <[EMAIL PROTECTED]
> wrote:If you want to have the first column of a table in a special layout or the last, a special css treatment is needed. In this cases it is very helpful to have an id-attr
If you want to have the first column of a table in a special layout or the
last, a special css treatment is needed. In this cases it is very helpful to
have an id-attribute in the tag. So I overwrite cellContainer
@Override
protected Item newCellItem(MarkupContainer cellContainer, final Str
Gwyn Evans wrote:
> I'm not sure about Stefan's requirements, but doesn't the
> "table. > thead > tr.headers > th" hierarchy let you target the
> header sufficiently?
e.g. it does not allow me to specify column widths. If every column had
it's id appended as class like:
nameactions
I could set
when i look at the markup of the headers toolbar i see
that is, i see that the tr carries a class, and the th carries a class. if there is a sortable header then those also carry classes.have you seen the demo of the datatable in examples? it is fully styled.
wh
I'm not sure about Stefan's requirements, but doesn't the
"table. > thead > tr.headers > th" hierarchy let you target the
header sufficiently?
/Gwyn
On 06/10/06, Leszek Gawron <[EMAIL PROTECTED]> wrote:
> Stefan Lindner wrote:
> > I can manipulate the data grip part of a DataTable by overriding
Stefan Lindner wrote:
> I can manipulate the data grip part of a DataTable by overriding newCellItem.
> But if I e.g. need a speical layout for the table header, I must add a class
> or id attribute to the elements of the headline (different layout on the
> left and right side e.g.).
> I can se
I can manipulate the data grip part of a DataTable by overriding newCellItem.
But if I e.g. need a speical layout for the table header, I must add a class or
id attribute to the elements of the headline (different layout on the left
and right side e.g.).
I can see no way to manipulate the gener
14 matches
Mail list logo