Commit before pull
This commit is contained in:
parent
adfec3b85d
commit
cb72266c81
|
@ -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}
|
||||||
|
|
|
@ -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,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue