Skip to content

- Added the public function "editActiveCell" #160

Open
ckosmowski wants to merge 2 commits into
EvHaus:masterfrom
ckosmowski:feature-editCell
Open

- Added the public function "editActiveCell" #160
ckosmowski wants to merge 2 commits into
EvHaus:masterfrom
ckosmowski:feature-editCell

Conversation

@ckosmowski
Copy link
Copy Markdown
Collaborator

Added the public function "editActiveCell" to make it possible to trigger editing the active cell from the outside i.e. if an external contextmenu is used to trigger editing entries this is needed

…rigger editing the active cell from the outside i.e. if an external contextmenu is used to trigger editing entries this is needed
@ckosmowski
Copy link
Copy Markdown
Collaborator Author

the editor parameter is optional. If its not provided the editor is taken from the options. I just mimicked the behaviour of the underlying method so that it is generally possible to pass an editor.

Comment thread src/doby-grid.js Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind changing this line to:

@param {function} [editor] - Editor factory to use. By default will use global editor.

To signify that the editor param is optional?

Additionally, we should make the same change to the makeActiveCellEditable header as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants