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", () => { Cypress.Commands.add("navigateToFrontend", () => {
cy.contains("frontend").click() cy.contains("design").click()
}) })
Cypress.Commands.add("createScreen", (screenName, route) => { Cypress.Commands.add("createScreen", (screenName, route) => {

View File

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

View File

@ -1,9 +1,27 @@
<script> <script>
export let params import ColumnHeaderPopover from "../popovers/ColumnPopover.svelte"
console.log("in svelte", params)
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> </script>
<h1>Fackle</h1> <button bind:this={menuButton} on:click={toggleMenu} />
<ColumnHeaderPopover on:click {field} />
<style> <style>
h1 { h1 {