ag grid updates

This commit is contained in:
Martin McKeaveney 2020-10-21 13:42:26 +01:00
parent ebc97c087a
commit 65479a803a
3 changed files with 25 additions and 4 deletions

View File

@ -149,7 +149,7 @@ Cypress.Commands.add("addButtonComponent", () => {
})
Cypress.Commands.add("navigateToFrontend", () => {
cy.contains("frontend").click()
cy.contains("design").click()
})
Cypress.Commands.add("createScreen", (screenName, route) => {

View File

@ -76,6 +76,9 @@
// checkboxSelection: i === 0 && canEdit,
// valueSetter: setters.get(schema[key].type),
headerComponent: TableHeader,
headerComponentParams: {
field: schema[key]
},
headerName: key,
field: key,
// hide: shouldHideField(key),

View File

@ -1,9 +1,27 @@
<script>
export let params
console.log("in svelte", params)
import ColumnHeaderPopover from "../popovers/ColumnPopover.svelte"
export let column
export let gridApi
export let field
export let enableMenu
let menuButton
// field = {
// name: column.colId,
// colDef: column.colDef,
// }
console.log("in svelte", $$restProps)
function toggleMenu() {
this.agParams.showColumnMenu(menuButton)
}
</script>
<h1>Fackle</h1>
<button bind:this={menuButton} on:click={toggleMenu} />
<ColumnHeaderPopover on:click {field} />
<style>
h1 {