⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Sorin Sfirlogea

Member Since 03 Dec 2020
Offline Last Active Apr 03 2021 12:48 PM
-----

Topics I've Started

Small modification, big benefits

18 January 2021 - 03:37 PM

I modified just a bit the code in the grocery-crud-2.8.7.xxxxxxxx.js file and I obtained a significant improvement in usability.

            columnsData.forEach(function (column) {

                columnData.push(_react2.default.createElement(
                    'td',
                    {
                        className: (0, _classnames2.default)({
                            'active': orderBy === column.name,
                            'table-active': orderBy === column.name
                        }, 'gc-data-container', column.name+'Field'), // added code: , column.name+'Field'
                        key: column.name
                    },
                    !column.value && _react2.default.createElement(
                        'span',
                        null,
                        '\xA0'
                    ),
                    column.value && !column.isHtml && _react2.default.createElement(
                        'div',
                        { className: 'gc-data-container-text' },
                        column.value
                    ),
                    column.value && column.isHtml && _react2.default.createElement('div', { className: 'gc-data-container-text', dangerouslySetInnerHTML: { __html: column.value } })
                ));
            });

It allows you to have additional styling on each column of the datagrid, as each td element will have a class named after its corresponding column (eg. amountField).

 

Maybe this is helpful for others too. 

Cheers.


Float field type - negative values

03 January 2021 - 02:46 PM

How can I input negative values in float type fields?


Dropdown values are hidden under table footer

03 December 2020 - 09:21 PM

Seems like a positioning / z-index problem, but I was unable to fix it. Same happens in modal windows - see example here (editing a record): https://www.groceryc...setRelation/#/!