Skip to content

Commit

Permalink
Add column menu to header template (#10334)
Browse files Browse the repository at this point in the history
When the types indicator was added the header template did not include the burger menu for the column. This adds the menu to the column header.

![image](https://github.com/enso-org/enso/assets/170310417/c71cc799-1177-4cd6-af83-b5d2ce3ecd46)
  • Loading branch information
marthasharkey authored Jun 21, 2024
1 parent 4164277 commit 38d7fbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function toField(name: string, valueType?: ValueType | null | undefined): ColDef
const svgTemplate = `<svg viewBox="0 0 16 16" width="16" height="16"> <use xlink:href="${icons}#${icon}"/> </svg>`
const template =
icon ?
`<div style='display:flex; flex-direction:row; justify-content:space-between; width:inherit;'> ${name} ${svgTemplate}</div>`
`<div style='display:flex; flex-direction:row; justify-content:space-between; width:inherit;'> ${name} <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button"> </span> ${svgTemplate}</div>`
: `<div>${name}</div>`
return {
field: name,
Expand Down

0 comments on commit 38d7fbb

Please sign in to comment.