Browse Source

Fix grid component definition and add controls for icons and colourpickers

gh-pages
Andrew Kingston 6 years ago
parent
commit
84bba45ad2
  1. 3
      packages/builder/src/components/design/PropertiesPanel/SettingsView.svelte
  2. 7
      packages/standard-components/manifest.json
  3. 2
      packages/standard-components/src/index.js

3
packages/builder/src/components/design/PropertiesPanel/SettingsView.svelte

@ -54,7 +54,10 @@
number: Input, number: Input,
event: EventsEditor, event: EventsEditor,
table: TableSelect, table: TableSelect,
color: ColorPicker,
icon: IconSelect,
} }
const getControl = type => { const getControl = type => {
return controlMap[type] return controlMap[type]
} }

7
packages/standard-components/manifest.json

@ -29,10 +29,9 @@
} }
] ]
}, },
"grid": { "datagrid": {
"name": "Grid", "name": "Grid",
"description": "description": "A datagrid component with functionality to add, remove and edit rows.",
"A datagrid component with functionality to add, remove and edit rows.",
"icon": "ri-grid-line", "icon": "ri-grid-line",
"styleable": true, "styleable": true,
"settings": [ "settings": [
@ -73,6 +72,7 @@
}, },
"screenslot": { "screenslot": {
"name": "Screenslot", "name": "Screenslot",
"icon": "ri-artboard-2-line",
"description": "Contains your app screens", "description": "Contains your app screens",
"styleable": true "styleable": true
}, },
@ -344,6 +344,7 @@
] ]
}, },
"login": { "login": {
"name": "Login Form",
"description": "A component that automatically generates a login screen for your app.", "description": "A component that automatically generates a login screen for your app.",
"icon": "ri-login-box-line", "icon": "ri-login-box-line",
"styleable": true, "styleable": true,

2
packages/standard-components/src/index.js

@ -2,7 +2,7 @@ import "@budibase/bbui/dist/bbui.css"
import "flatpickr/dist/flatpickr.css" import "flatpickr/dist/flatpickr.css"
export { default as container } from "./Container.svelte" export { default as container } from "./Container.svelte"
export { default as grid } from "./grid/Component.svelte" export { default as datagrid } from "./grid/Component.svelte"
export { default as screenslot } from "./ScreenSlot.svelte" export { default as screenslot } from "./ScreenSlot.svelte"
export { default as button } from "./Button.svelte" export { default as button } from "./Button.svelte"
export { default as input } from "./Input.svelte" export { default as input } from "./Input.svelte"

Loading…
Cancel
Save