\define db() $(currentTiddler)$-db
\define dbformstate() $(currentTiddler)$-formstate
\define indexfilter() [[$(currentTiddler)$-db]indexes[]sort[title]]
\define dbfilter() [title[$(currentTiddler)$-db]]
<style>
.table-custom,
.table-custom thead,
.table-custom caption,
.table-custom thead td,
.table-custom thead tr,
.table-custom tbody td,
.table-custom th,
.table-custom td{
display: block;
}
.table-custom tr{
display: block;
float: left;
border: 1px solid #dddddd;
}
</style>
<$edit-text tiddler="db-form-fieldname-temp" placeholder="Input Filed Name" index="fieldName" size="30" tag=input/>
<$set name="myVariable" tiddler="db-form-fieldname-temp" index="fieldName">
<$button type="button" class="btn btn-danger" setTitle=<<db>> setIndex=<<myVariable>> setTo=" - ">Add Field
<$action-setfield $tiddler="db-form-fieldname-temp" $index="fieldName" text=""/>
</$button>
</$set>
---
<$macrocall $name="table-dynamic" filter=<<dbfilter>> indexes=<<indexfilter>> stateTiddler=<<dbformstate>> class="table-custom thead-success" caption="''Table: You can define the Caption by replacing this text in edit mode''"/>