Commit before pull

This commit is contained in:
Conor_Mack 2020-03-02 11:40:16 +00:00
parent adfec3b85d
commit cb72266c81
4 changed files with 26 additions and 2 deletions

View File

@ -45,8 +45,6 @@
} }
setContext("BBMD:list:context", "menu") setContext("BBMD:list:context", "menu")
}) })
$: menu && _bb.attachChildren(menu)
</script> </script>
{#if useFixedPosition || useAbsolutePosition} {#if useFixedPosition || useAbsolutePosition}

View File

@ -16,6 +16,7 @@
CustomersIndexTable, CustomersIndexTable,
List, List,
Icon, Icon,
Menu,
} = props } = props
let currentComponent let currentComponent
@ -40,6 +41,7 @@
Datatable, Datatable,
CustomersIndexTable, CustomersIndexTable,
List, List,
Menu,
], ],
}, },
} }

View File

@ -152,4 +152,27 @@ export const props = {
singleSelection: true, singleSelection: true,
onSelect: selected => console.log(selected), onSelect: selected => console.log(selected),
}, },
Menu: {
_component: "@budibase/materialdesign-components/Menu",
_children: [
{
_component: "@budibase/materialdesign-components/ListItem",
_children: [],
text: "Settings",
value: 0,
},
{
_component: "@budibase/materialdesign-components/ListItem",
_children: [],
text: "Account",
value: 1,
},
{
_component: "@budibase/materialdesign-components/ListItem",
_children: [],
text: "Profile",
value: 2,
},
],
}
} }

View File

@ -17,3 +17,4 @@ export {
export { default as indexDatatable } from "./Templates/indexDatatable" export { default as indexDatatable } from "./Templates/indexDatatable"
export { default as recordForm } from "./Templates/recordForm" export { default as recordForm } from "./Templates/recordForm"
export { List, ListItem } from "./List" export { List, ListItem } from "./List"
export {Menu} from "./Menu"