Hi Experts,
I am using tables and often I need tables with different width of the columns.
Yes it is possibel to define classes but than I need a lot of them for each change
Is it possible to have on top of the table a width definition as tc-first-col-min-width?
Here a examples I think about
|tc-with-30 tc-with-70 |k
|This is a caption |c
|Cell1 |Cell2 |
|Cell3 |Cell4 |
|Header|Header|h
|Footer|Footer|f
and in an other table I can use
|tc-with-10 tc-with-40 tc-with-50 |k
|This is a caption |c
|Cell1 |Cell2 |Cell3 |
|Cell1 |Cell2 |Cell4 |
|Header|Header|h
|Footer|Footer|f
I could easily imagine adopting this kind of solution, with the edit-text bit in a span that makes it show only to author of table, while being hidden for visitors. This would let you tweak column width right there at the location of the table, without going into edit mode. (Of course, your in-tiddler style class would need to be named in a way that guarantees uniqueness; when this tiddler is in the story river, it will affect the css for any other tiddler with the .custom class.)
It would be good if we could develop a standard here. I have myself taken to using a simple config tiddler for what I call “mode” tiddlers, which contain yes OR no, and a field called config-values containing the values with the default first “yes no”.
$:/config/design-mode
$:/config/author-mode
$:/config/debug-mode
Then the raw use of a mode test in a filter is [{$:/config/author-mode}match[yes]]
I would be tempted to put a macro in the above table, in the macro definition this is tested, rather than code inside the table.
Designer is close to developer, but it’s about designing the wiki, and as a user/super user not a developer adding features, changing core or developing JS plugins, but as a wiki designer using the features to build for a user (may later be oneself).
I tend to use designer mode to hide tools or content I need to see when designing but once running is hidden from regular users.
But I have also used debug-mode while researching a fault. It allows diagnostic info to be shown but quickly turned off as needed.
The difference with author mode is it is more likely to be used when the wiki is used for creating content, be it blog posts, or book chapters.
In many ways then you may be unlikely to use these modes yourself. But if someone decides to add it to a solution you install, you may come to use it.
Another I have used is wiki-mode with accompanies a tiddler and field mode with read-only, view, update, edit through to design/develop with a cascade so you can override the resulting mode locally.
This is a useful piece of code @@display:block;width:150px;Header1@@ but is it possible to do something similar to specify the colmn width as a percentage of the overall table width?
I’m not a CSS guru, but the fixed pixel width span forces the <TD> to size, while the %width span calculates a % for the span within the <TD>. At least that is the way I understand it.