Comments (9)
I think I don't really need a persist state, just a default order is enough. This also prevent changes in the git.
from tw-shiraz.
The delete all
only appears if you click on delete button on the header in Edit mode.
There is a temp tiddler $:/temp/tables/delete-all
delete it and see if still you have the warning red bar?
What happen when you click no on the warning bar? Is it persistent?
from tw-shiraz.
You can try it directly on my wiki ( on this, https://onetwo.ren/wiki/#%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%83%B3%E6%B3%95%E5%88%97%E8%A1%A8:%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%83%B3%E6%B3%95%E5%88%97%E8%A1%A8%20Index this site is single HTML ,so editable and not saved) ( https://wiki.onetwo.ren/#%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%83%B3%E6%B3%95%E5%88%97%E8%A1%A8:%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%83%B3%E6%B3%95%E5%88%97%E8%A1%A8%20Index is readonly)
On this sidebar tab
and
This only happened on sidebar
from tw-shiraz.
While I see the error on your wiki, but I cannot reproduce it on the demo page, as I use template for tabs. I believe this is a TiddlyWiki bad design of tabs where in that the currentTiddler
does not work and you have to use template.
Dynamic table uses stateTiddler
for intermediate data! when it is not passed explicitly in macro call, the currentTiddler
is used and when dynamic tables are called from sidebar (e.g. tabs) the issue appears.
To solve your case do as below:
- open https://onetwo.ren/wiki/#%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%83%B3%E6%B3%95%E5%88%97%E8%A1%A8
- modify its content as below
\define sv-exclude-tags() 想法
<$tiddler tiddler=<<currentTab>> >
<<table-dynamic filter:"[tag[想法]]" fields:"title created tags tbl-expand" pagination:yes class:"w-100 table-center" editButton:no emptyMessage:"太好了,所有想法都整理到笔记里">>
</$tiddler>
from tw-shiraz.
Another solution is to use an explicit stateTiddler, like below:
<<table-dynamic filter:"[tag[想法]]"
fields:"title created tags tbl-expand"
pagination:yes class:"w-100 table-center"
editButton:no
emptyMessage:"太好了,所有想法都整理到笔记里"
stateTiddler:"Some State Tiddler Title Here" >>
from tw-shiraz.
\define sv-exclude-tags() 想法
<$tiddler tiddler=<> >
<<table-dynamic filter:"[tag[想法]]" fields:"title created tags tbl-expand" pagination:yes class:"w-100 table-center" editButton:no emptyMessage:"太好了,所有想法都整理到笔记里">>
</$tiddler>
This works, thank you!
Just wrapping things that will show in sidebar, warp in <$tiddler tiddler=<<currentTab>> > </$tiddler>
from tw-shiraz.
But this does not work state:侧边栏想法列表/state
, still shows error.
And it also not presist sort state. Which I hope can be achieved by #36
from tw-shiraz.
Did you clearly set the stateTiddler on table-dynamic call?
from tw-shiraz.
And it also not presist sort state. Which I hope can be achieved by #36
I think when you set a stateTiddler like mystate
the Shiraz creates a tiddler like
$:/state/dynamictables/mystate/sortby
and if you work on Node.JS this tiddler is not saved between sessions.
If you need to keep state, I have to do some changes in state handling in dynamic table.
For more info see https://kookma.github.io/TW-Shiraz/#%24%3A%2Fplugins%2Fkookma%2Fshiraz%2Fmacros%2Fdtables%2Fhelper to learn how Shiraz handles state and temp tiddlers for Dynmaic Table.
from tw-shiraz.
Related Issues (20)
- ControlPanel/Settings wrong tag. not in controlpanel HOT 3
- shiraz demo is down HOT 1
- [dynamic table][contrebution] only show expand arrow if text is not empty HOT 2
- URL in readme plugin HOT 2
- [SOLVED] Transposed tables HOT 7
- What does stateTiddler mean? HOT 2
- Double click on table cell to edit that cell. HOT 7
- Allow DTable store field in tiddler instead of JSON HOT 7
- [IDEA] add the list-pages features to list-search macro HOT 1
- Suggestion: Package the Tutorial for easy import HOT 3
- [Feature Request] Provide Snippets HOT 8
- link overrideClass HOT 5
- tbl-expand doesn't work for tiddlers which have '/' in their titles HOT 3
- DatePicker, Dates and Timezones. HOT 3
- WikiText in dynamic table HOT 1
- [Feature Request] Clickable image card HOT 3
- Using another macro output as input for Shinraz plugin input HOT 2
- Config tiddler for light & dark palette HOT 5
- shiraz-callout supports multiple lines HOT 2
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 tw-shiraz.