Lines Matching refs:cellProperties
6852 BaseEditor.prototype.prepare = function (row, col, prop, td, originalValue, cellProperties) {
6858 this.cellProperties = cellProperties;
6976 if (this.instance.getCellValidator(this.cellProperties)) {
6998 if (result === false && this.cellProperties.allowInvalid !== true) {
15103 var cellProperties = instance.getCellMeta(row, col);
15105 if (cellProperties.type === 'numeric' && typeof changes[i][3] === 'string') {
15106 …anges[i][3].length > 0 && (/^-?[\d\s]*(\.|,)?\d*$/.test(changes[i][3]) || cellProperties.format)) {
15109 if ((0, _mixed.isUndefined)(cellProperties.language)) {
15116 _numbro2.default.culture(cellProperties.language);
15134 if (instance.getCellValidator(cellProperties)) {
15136 instance.validateCell(changes[i][3], cellProperties, function (i, cellProperties) {
15141 if (result === false && cellProperties.allowInvalid === false) {
15143 … cellProperties.valid = true; // we cancelled the change, so cell value is still valid
15144 var cell = instance.getCell(cellProperties.row, cellProperties.col);
15150 }(i, cellProperties), source);
15240 this.validateCell = function (value, cellProperties, callback, source) {
15241 var validator = instance.getCellValidator(cellProperties);
15244 var col = cellProperties.visualCol,
15245 row = cellProperties.visualRow,
15264 …value = instance.runHooks('beforeValidate', value, cellProperties.visualRow, cellProperties.prop, …
15268 validator.call(cellProperties, value, function (valid) {
15269 …alid = instance.runHooks('afterValidate', valid, value, cellProperties.visualRow, cellProperties.p…
15270 cellProperties.valid = valid;
15273 …instance.runHooks('postAfterValidate', valid, value, cellProperties.visualRow, cellProperties.prop…
15279 cellProperties.valid = true;
15280 done(cellProperties.valid);
16467 var cellProperties = void 0;
16485 …cellProperties = priv.cellSettings[physicalRow][physicalColumn]; // retrieve cellProperties from c…
16487 cellProperties.row = physicalRow;
16488 cellProperties.col = physicalColumn;
16489 cellProperties.visualRow = row;
16490 cellProperties.visualCol = col;
16491 cellProperties.prop = prop;
16492 cellProperties.instance = instance;
16494 instance.runHooks('beforeGetCellMeta', row, col, cellProperties);
16495 …(0, _object.extend)(cellProperties, expandType(cellProperties)); // for `type` added in beforeGetC…
16497 if (cellProperties.cells) {
16498 var settings = cellProperties.cells.call(cellProperties, physicalRow, physicalColumn, prop);
16501 (0, _object.extend)(cellProperties, settings);
16502 (0, _object.extend)(cellProperties, expandType(settings)); // for `type` added in cells
16506 instance.runHooks('afterGetCellMeta', row, col, cellProperties);
16508 return cellProperties;
16754 var cellProperties = instance.getCellMeta(0, col);
16755 var width = cellProperties.width;
16758 width = cellProperties.colWidths;
18003 var cellProperties = _this2.hot.getCellMeta(row, column);
18005 cellProperties.col = column;
18006 cellProperties.row = row;
18008 var renderer = _this2.hot.getCellRenderer(cellProperties);
18011 … renderer(_this2.hot, td, row, column, _this2.hot.colToProp(column), string.value, cellProperties);
18064 var cellProperties = _this4.hot.getCellMeta(row, column);
18066 cellProperties.col = column;
18067 cellProperties.row = row;
18069 var renderer = _this4.hot.getCellRenderer(cellProperties);
18073 … renderer(_this4.hot, td, row, column, _this4.hot.colToProp(column), string.value, cellProperties);
29110 …var trimDropdown = this.cellProperties.trimDropdown === void 0 ? true : this.cellProperties.trimDr…
29118 afterRenderer: function afterRenderer(TD, row, col, prop, value, cellProperties) {
29119 var _this$cellProperties = _this.cellProperties,
29171 var source = this.cellProperties.source;
29174 source.call(this.cellProperties, query, function (choices) {
29189 var sortByRelevanceSetting = this.cellProperties.sortByRelevance;
29190 var filterSetting = this.cellProperties.filter;
29195 …tByRelevance(this.stripValueIfNeeded(this.getValue()), choices, this.cellProperties.filteringCaseS…
29228 if (this.cellProperties.strict === true) {
29313 var trimDropdown = this.cellProperties.trimDropdown;
29422 var visibleRows = this.cellProperties.visibleRows;
29432 var allowHtml = this.cellProperties.allowHtml;
29509 HandsontableEditor.prototype.prepare = function (td, row, col, prop, value, cellProperties) {
29535 if (this.cellProperties.handsontable) {
29536 (0, _object.extend)(options, cellProperties.handsontable);
29606 if (this.cellProperties.strict) {
34736 var row, col, prop, td, originalValue, cellProperties, editorClass;
34753 cellProperties = instance.getCellMeta(row, col);
34754 editorClass = instance.getCellEditor(cellProperties);
34758 activeEditor.prepare(row, col, prop, td, originalValue, cellProperties);
34784 if (activeEditor && !activeEditor.cellProperties.readOnly) {
34786 } else if (activeEditor && activeEditor.cellProperties.readOnly) {
35063 value: function prepare(row, col, prop, td, originalValue, cellProperties) {
35065 …eEditor.prototype), 'prepare', this).call(this, row, col, prop, td, originalValue, cellProperties);
35136 var dateFormat = this.cellProperties.dateFormat || this.defaultDateFormat;
35163 } else if (this.cellProperties.defaultDate) {
35164 dateStr = this.cellProperties.defaultDate;
35210 if (this.cellProperties && this.cellProperties.datePickerConfig) {
35211 (0, _object.deepExtend)(options, this.cellProperties.datePickerConfig);
35224 …dateStr = (0, _moment2.default)(dateStr).format(_this4.cellProperties.dateFormat || _this4.default…
35297 value: function prepare(row, col, prop, td, originalValue, cellProperties) {
35298 …nEditor.prototype), 'prepare', this).call(this, row, col, prop, td, originalValue, cellProperties);
35299 this.cellProperties.filter = false;
35300 this.cellProperties.strict = true;
35685 if (typeof this.cellProperties.language !== 'undefined') {
35686 _numbro2.default.culture(this.cellProperties.language);
35822 var selectOptions = this.cellProperties.selectOptions;
46503 var afterRenderer = function afterRenderer(TD, row, col, prop, value, cellProperties) {
46603 var afterGetCellMeta = function afterGetCellMeta(row, col, cellProperties) {
46608 cellProperties.copyable = false;
47204 var cellProperties = instance.getCellMeta(rowIndex, colIndex);
47205 var cellCallback = cellProperties.search.callback || callback;
47206 var cellQueryMethod = cellProperties.search.queryMethod || queryMethod;
47274 function SearchCellDecorator(instance, TD, row, col, prop, value, cellProperties) {
47275 …var searchResultClass = cellProperties.search !== null && _typeof(cellProperties.search) == 'objec…
47277 if (cellProperties.isSearchResult) {
47286 …enderers.registerRenderer)('base', function (instance, TD, row, col, prop, value, cellProperties) {
47319 function cellDecorator(instance, TD, row, col, prop, value, cellProperties) {
47320 if (cellProperties.className) {
47322 TD.className = TD.className + ' ' + cellProperties.className;
47324 TD.className = cellProperties.className;
47328 if (cellProperties.readOnly) {
47329 (0, _element.addClass)(TD, cellProperties.readOnlyCellClassName);
47332 if (cellProperties.valid === false && cellProperties.invalidCellClassName) {
47333 (0, _element.addClass)(TD, cellProperties.invalidCellClassName);
47335 (0, _element.removeClass)(TD, cellProperties.invalidCellClassName);
47338 if (cellProperties.wordWrap === false && cellProperties.noWordWrapClassName) {
47339 (0, _element.addClass)(TD, cellProperties.noWordWrapClassName);
47342 if (!value && cellProperties.placeholder) {
47343 (0, _element.addClass)(TD, cellProperties.placeholderCellClassName);
47399 function autocompleteRenderer(instance, TD, row, col, prop, value, cellProperties) {
47403 if (cellProperties.allowHtml) {
47483 function checkboxRenderer(instance, TD, row, col, prop, value, cellProperties) {
47488 var labelOptions = cellProperties.label;
47491 if (typeof cellProperties.checkedTemplate === 'undefined') {
47492 cellProperties.checkedTemplate = true;
47494 if (typeof cellProperties.uncheckedTemplate === 'undefined') {
47495 cellProperties.uncheckedTemplate = false;
47500 …if (value === cellProperties.checkedTemplate || (0, _string.equalsIgnoreCase)(value, cellPropertie…
47502 …} else if (value === cellProperties.uncheckedTemplate || (0, _string.equalsIgnoreCase)(value, cell…
47753 var cellProperties = instance.getCellMeta(row, col);
47755 if (cellProperties.readOnly) {
47775 var cellProperties = instance.getCellMeta(row, col);
47777 if (!cellProperties.readOnly) {
47781 …newCheckboxValue = cellProperties.uncheckedTemplate === void 0 ? true : cellProperties.checkedTemp…
47783 …newCheckboxValue = cellProperties.uncheckedTemplate === void 0 ? false : cellProperties.uncheckedT…
47827 function htmlRenderer(instance, TD, row, col, prop, value, cellProperties) {
47872 function numericRenderer(instance, TD, row, col, prop, value, cellProperties) {
47874 if (typeof cellProperties.language !== 'undefined') {
47875 _numbro2.default.culture(cellProperties.language);
47878 value = (0, _numbro2.default)(value).format(cellProperties.format || '0');
47880 var className = cellProperties.className || '';
47892 cellProperties.className = classArr.join(' ');
47895 (0, _index.getRenderer)('text')(instance, TD, row, col, prop, value, cellProperties);
47926 function passwordRenderer(instance, TD, row, col, prop, value, cellProperties) {
47931 var hashLength = cellProperties.hashLength || value.length;
47932 var hashSymbol = cellProperties.hashSymbol || '*';
47972 function textRenderer(instance, TD, row, col, prop, value, cellProperties) {
47975 if (!value && cellProperties.placeholder) {
47976 value = cellProperties.placeholder;
47985 if (cellProperties.rendererTemplate) {
47989 TEMPLATE.innerHTML = cellProperties.rendererTemplate;
48281 var cellProperties = that.instance.getCellMeta(row, col);
48289 that.instance.runHooks('beforeRenderer', TD, row, col, prop, value, cellProperties);
48290 …that.instance.getCellRenderer(cellProperties)(that.instance, TD, row, col, prop, value, cellProper…
48291 that.instance.runHooks('afterRenderer', TD, row, col, prop, value, cellProperties);