mercurymedia/elm-ag-grid/10.1.0

NOTE: the latest version is 34.0.1

AgGrid.ContextMenu

Definition

Context action configuration.

= ChildContextAction ContextAction

Child Context action configuration.

type alias ContextMenu =

Type alias for a context menu.

Custom context action

{ name : String
, checked : Maybe Bool
, actionName : Maybe String
, disabled : Eval Bool
, icon : Maybe String
, subMenu : List ChildContextAction
}

Create a custom context action

defaultActionAttributes : ContextActionAttributes

Retrieves ContextActionAttributes with default configuration.

Can be used to ease the context action attributes configuration.

    { name = ""
    , checked = Nothing
    , disabled = Const False
    , actionName = Nothing
    , icon = Nothing
    , subMenu = []
    }

Predefined context actions

Chart a range of selected cells. Only shown if charting is enabled.

Reference: https://www.ag-grid.com/javascript-data-grid/context-menu/#built-in-menu-items

Collapse all groups. When set, it's only shown if grouping by at least one column.

Reference: https://www.ag-grid.com/javascript-data-grid/context-menu/#built-in-menu-items

Chart all grouped and pivoted data from the grid. Only shown if charting is enabled and in Pivot Mode.

Reference: https://www.ag-grid.com/javascript-data-grid/context-menu/#built-in-menu-items

Encoding

encode : ContextMenu -> Value

Encodes the ContextMenu type to json.