mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Adding description icon and tooltip in the GridView
Summary: Column description and new renaming popup for the GridView. Test Plan: Updated Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3838
This commit is contained in:
@@ -882,13 +882,12 @@ exports.statusPanel = function(valueObservable, options) {
|
||||
* @param {Observable} optToggleObservable - If another observable is provided, it will be used to
|
||||
* toggle whether or not the field is editable. It will also prevent clicks from affecting whether
|
||||
* the label is editable.
|
||||
* @param {Observable} optCommands - Optional commands to bind to the input.
|
||||
*/
|
||||
exports.editableLabel = function(valueObservable, optToggleObservable, optCommands) {
|
||||
exports.editableLabel = function(valueObservable, optToggleObservable) {
|
||||
var isEditing = optToggleObservable || ko.observable(false);
|
||||
var cancelEdit = false;
|
||||
|
||||
var editingCommands = Object.assign({
|
||||
var editingCommands = {
|
||||
cancel: function() {
|
||||
cancelEdit = true;
|
||||
isEditing(false);
|
||||
@@ -897,7 +896,7 @@ exports.editableLabel = function(valueObservable, optToggleObservable, optComman
|
||||
cancelEdit = false;
|
||||
isEditing(false);
|
||||
}
|
||||
}, optCommands || {});
|
||||
};
|
||||
|
||||
var contentSizer;
|
||||
return dom('div.kf_editable_label',
|
||||
|
||||
Reference in New Issue
Block a user