fields icon indicating copy to clipboard operation
fields copied to clipboard

Make it possible to pass extra attributes to table generated by f:table

Open snimavat opened this issue 8 years ago • 5 comments

Currently, even if we just want to specify the class for table generated by f:table tag, we have to override the whole _table template in application.

It would be great if there was a way to specify extra attributes for generated table.

We have a bootstrap-fields internal plugin which provides bootstrap based field templates, but plugin can not provide bootstrap table and the table template must be overriden at application level

snimavat avatar Mar 12 '17 07:03 snimavat

I agree, that the table implementation is somewhat lacking compared to the fields implementations. This should be looked into in order to streamline them.

sbglasius avatar Mar 13 '17 12:03 sbglasius

Is it possible to create more than one _table template and, if it is, how to use it? For example, I would like to have one template for 'display only' tables and separate one for 'editable' tables? I see that there is 'displayStyle' option for f:table but can not figure out how to use and how to define extra templates?

zbubric avatar Sep 10 '17 10:09 zbubric

it would be great if it accepted a namespace attribute

ScottIngram avatar Oct 10 '17 07:10 ScottIngram

What with namespace?

ilyavaiser avatar Jul 30 '18 12:07 ilyavaiser

@sbglasius There are some open pull requests on this ticket. Could you please verify and merge?

bond- avatar Nov 28 '18 19:11 bond-