We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is a minimum example of a dynamic property controlling the row height depending on the length of the name:
ui.aggrid({ 'columnDefs': [{'field': 'name'}], 'rowData': [{'name': 'Alice'}, {'name': 'Bob'}], ':getRowHeight': 'params => params.data.name.length * 10', })
The same property is ignored when wrapped with line breaks:
ui.aggrid({ 'columnDefs': [{'field': 'name'}], 'rowData': [{'name': 'Alice'}, {'name': 'Bob'}], ':getRowHeight': ''' params => params.data.name.length * 10 ''', })
The text was updated successfully, but these errors were encountered:
815c88c
The way we converted strings to JavaScript objects couldn't handle leading line breaks:
obj[attr.slice(1)] = new Function("return " + value)();
The function would just return undefined because the line ends after "return". I fixed it by adding brackets:
undefined
obj[attr.slice(1)] = new Function(`return (${value})`)();
Sorry, something went wrong.
falkoschindler
No branches or pull requests
Description
Here is a minimum example of a dynamic property controlling the row height depending on the length of the name:
The same property is ignored when wrapped with line breaks:
The text was updated successfully, but these errors were encountered: