.Dataset().ScriptTag()
string api
.Dataset(...)
.ScriptTag(string token, string style)
Get a <script>
tag for a specific dataset to be displayed as a table. Insert this script tag where you want the table to appear in your HTML.
.Token()
)d
- Defaultauto
- Auto detectbm
- Bulmabs
- Bootstrap 3bs4
- Bootstrap 4bs5
- Bootstrap 5dt
- CloudTables / DataTables default stylingzf
- Zurb Foundationju
- jQuery UIse
- Semantic UIno
- No stylingThis method returns a string which contains the HTML <script>
tag to use to embed your CloudTable.
var api = new CloudTables.Api(":apiKey")
.Domain(":domainOrIp");
var token = await api.Token();
var result = Api.Dataset(":id").ScriptTag(token);
Will result in a string such as:
<script
src="https://sub-domain.{domain}/loader/:id/table/d"
data-token="ANnbgUJoKO8qh5fYObpffdNqqgANtVVL"
></script>