Skip to content

Commit

Permalink
2.0.36-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
poirazis committed Oct 13, 2024
1 parent 173ef9c commit fc79c0f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bb-component-SuperTable",
"version": "2.0.35-alpha",
"version": "2.0.36-alpha",
"description": "A Fully Customizable Budibase Table Component",
"author": "Michael Poirazi",
"license": "MIT",
Expand Down
32 changes: 23 additions & 9 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,6 @@
"label": "Fetch on Scroll",
"defaultValue": false
},
{
"type": "number",
"key": "fetchPageSize",
"label": "Records to Fetch",
"dependsOn": "fetchOnScroll",
"min": 10,
"max": 500,
"defaultValue": 100
},
{
"type": "boolean",
"key": "autoRefresh",
Expand Down Expand Up @@ -406,6 +397,29 @@
"name": "Appearance",
"collapsed": false,
"settings": [
{
"type": "select",
"label": "Flex Mode",
"showLabel": false,
"key": "flex",
"showInBar": true,
"barStyle": "buttons",
"options": [
{
"label": "Shrink",
"value": "none",
"barIcon": "Minimize",
"barTitle": "Shrink container"
},
{
"label": "Grow",
"value": "auto",
"barIcon": "Maximize",
"barTitle": "Grow container"
}
],
"defaultValue": "none"
},
{
"type": "text",
"key": "entitySingular",
Expand Down
3 changes: 3 additions & 0 deletions src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
export let datasource;
export let isTable;
export let flex = "none";
// Builder Code to identify if we are dealing with a Table or View Datasource
$: localIsTable = datasource?.type == "table" || datasource?.tableId;
Expand All @@ -24,6 +25,8 @@
...$component.styles,
normal: {
...$component.styles.normal,
flex,
display: "flex",
height: $component.styles.normal.height
? $component.styles.normal.height
: 360,
Expand Down

0 comments on commit fc79c0f

Please sign in to comment.