\define ss_cols() a b c d e f g
\define ss_rows() 1 2 3 4 5 6
\define ss_cell() $(c)$$(r)$
<$tiddler tiddler="Spreadsheet/Data">
Click on cells to pop up an editor. Formulas currently need to be written in `(= =)` but cells may be referred to by their names, such as `a2`. Ranges aren't supported yet.
<$vars popupState=<<qualify "$:/temp/spreadsheet/pop">> popupCell=<<qualify "$:/temp/spreadsheet/popcell">> >
<$reveal type="popup" state=<<popupState>> >
<div class="tc-drop-down tc-popup-keep">
<$set name="cell" filter="[title<popupCell>get[text]]">
''<<cell>>'': <$edit-text tag=input index=<<cell>> size=230 />
<$button class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield $tiddler=<<popupState>> text=""/></$button>
</$set>
</div>
</$reveal>
<table>
<tr><th></th><$list variable=c filter=<<ss_cols>> ><th><<c>></th></$list></tr>
<$list variable=r filter=<<ss_rows>> >
<tr>
<th style="background-color:white;font-size:0.2em;padding:0;"><<r>></th>
<$list variable=c filter=<<ss_cols>> ><td style="background-color:white;padding:0;">
<$button popup=<<popupState>> style="width:100%;margin:0;padding:6px;display:block;background:none;border:none;cursor:pointer;"><$action-setfield $tiddler=<<popupCell>> text=<<ss_cell>>/> <$formula formula=<<ss_cell>>/>
</$button>
</td>
</$list>
</tr>
</$list>
</table>
</$vars>
<!-- <table>
<tr><th></th><$list variable=c filter=<<ss_cols>> ><th><<c>></th></$list></tr>
<$list variable=r filter=<<ss_rows>> >
<tr><th><<r>></th><$list variable=c filter=<<ss_cols>> ><td><$edit-text tag=input index=<<ss_cell>> size=10/></td></$list></tr>
</$list>
</table> -->
</$tiddler>
\define ss_cols() a b c d e f g
\define ss_rows() 1 2 3 4 5 6
\define ss_cell() $(c)$$(r)$
<$tiddler tiddler="Spreadsheet/Data">
Click on cells to pop up an editor. Formulas currently need to be written in `(= =)` but cells may be referred to by their names, such as `a2`. Ranges aren't supported yet.
<$vars popupState=<<qualify "$:/temp/spreadsheet/pop">> popupCell=<<qualify "$:/temp/spreadsheet/popcell">> >
<$reveal type="popup" state=<<popupState>> >
<div class="tc-drop-down tc-popup-keep">
<$set name="cell" filter="[title<popupCell>get[text]]">
''<<cell>>'': <$edit-text tag=input index=<<cell>> size=230 />
<$button class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield $tiddler=<<popupState>> text=""/></$button>
</$set>
</div>
</$reveal>
<table class="my-ss-table">
.my-ss-table th:nth-child(2),
.my-ss-table td:nth-child(2) {
display:none;
}
.my-ss-table > th:nth-child(2),
.my-ss-table > td:nth-child(2) {
display:none;
}
<table class="my-ss-table">
and
to insert
.my-ss-table th:nth-child(2),
.my-ss-table td:nth-child(2) {
display:none;
}
at different places, but with no success at all.
Where do have to insert it in this:??
\define ss_cols() a b c d e f g
\define ss_rows() 1 2 3 4 5 6
\define ss_cell() $(c)$$(r)$
<$tiddler tiddler="Spreadsheet/Data">
Click on cells to pop up an editor. Formulas currently need to be written in `(= =)` but cells may be referred to by their names, such as `a2`. Ranges aren
't supported yet.
<$vars popupState=<<qualify "$:/temp/spreadsheet/pop">> popupCell=<<qualify "$:/temp/spreadsheet/popcell">> >
<$reveal type="popup" state=<<popupState>> >
<div class="tc-drop-down tc-popup-keep">
<$set name="cell" filter="[title<popupCell>get[text]]">
''<<cell>>'': <$edit-text tag=input index=<<cell>> size=230 />
<$button class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield $tiddler=<<popupState>> text=""/></$button>
</$set>
</div>
</$reveal>
<table>
<tr><th></th><$list variable=c filter=<<ss_cols>> ><th><<c>></th></$list></tr>
<$list variable=r filter=<<ss_rows>> >
<tr>
<th style="background-color:white;font-size:0.2em;padding:0;"><<r>></th>
<$list variable=c filter=<<ss_cols>> ><td style="background-color:white;padding:0;">
<$button popup=<<popupState>> style="width:100%;margin:0;padding:6px;display:block;background:none;border:none;cursor:pointer;"><$action-setfield $tiddler=<<popupCell>> text=<<ss_cell>>/> <$formula formula=<<ss_cell>>/>
</$button>
</td>
</$list>
</tr>
</$list>
</table>
</$vars>
<!-- <table>
<tr><th></th><$list variable=c filter=<<ss_cols>> ><th><<c>></th></$list></tr>
<$list variable=r filter=<<ss_rows>> >
<tr><th><<r>></th><$list variable=c filter=<<ss_cols>> ><td><$edit-text tag=input index=<<ss_cell>> size=10/></td></$list></tr>
</$list>
</table> -->
</$tiddler>
The above assumes you will have NO INNER nested TABLES with more THs and TDs. If you DO have nested tables, change it to this:
>>>I don't kno what inner nested tables are, so I think, I don't have such. This what I wrote above, IS the table with calculating possibilities.
Surya
Hi Coda,
thanks for your answer :-)
$:/tags/Stylesheet
It made a additional row above the table, the "</$tiddler>" is now visible under the table in view mode and it build a frame around the table and the rest of the tiddler-text.
Maybe, I should build a new wiki on tiddlyspot for testing-purposes- so that you could better see, what I mean and see my mistakes better?
<style>
.my-ss-table th:nth-child(1) {
background-color:yellow;
}
.my-ss-table th:nth-child(2),
.my-ss-table td:nth-child(2) {
display:none;
}
</style>
<table class="my-ss-table">
<tr>
<th>one</th><th>two</th><th>three</th><th>four</th><th>five</th>
</tr>
<tr>
<td>1</td><td>2</td><td>3</td><td>4</td><td>5</td>
</tr>
<tr>
<td>1</td><td>2</td><td>3</td><td>4</td><td>5</td>
</tr>
<tr>
<td>1</td><td>2</td><td>3</td><td>4</td><td>5</td>
</tr>
</table>