@cloudtables/svelte
v1.0.0
Published
CloudTables component for Svelte
Maintainers
Readme
CloudTables Svelte
CloudTables Svelte is a Svelte component that adds custom HTML tags <CloudTables/> to your Svelte application.
These tags replace the script tags that are used to import your cloud table in vanilla HTML document.
CloudTables is a no code / low code system which lets you create complex and dynamic database driven applications with ease. Hosted or self-hosted options are available so you can be up and running in moments.
Getting Started
Inside your Svelte application install this component:
npm install --save @cloudtables/svelteAfter npm has finished installing. Change your App.js file in /src/ include
import CloudTables from "@cloudtables/svelte";Once those changes are made you can now use the custom CloudTables tags: <CloudTables/>, for example:
<CloudTables
src="https://ct-examples.cloudtables.io/loader/4e9e8e3c-f448-11eb-8a3f-43eceac3195f/table/d"
apiKey="AzG0e04UxhduaTAJjYC3Dgfr"
/>srcThe custom url for your CloudTable.apiKeywould be replaced by your API Key (see the Security / API Keys section in your CloudTables application)tokenserver side generated secure access token that can be used instead of anapiKeyuserIdis optional, but will be used to uniquely identify user's in the CloudTables interface.userNameis also optional, but can be used to help identify who made what changes when reviewing logs in CloudTables. It is recommended you includeuserIdanduserName.
All the data values required can be found in your CloudTables application.
