Skip to content
New issue

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

allow user to add configurable header & footer #8

Open
avp90 opened this issue Sep 10, 2021 · 0 comments · May be fixed by #9
Open

allow user to add configurable header & footer #8

avp90 opened this issue Sep 10, 2021 · 0 comments · May be fixed by #9

Comments

@avp90
Copy link

avp90 commented Sep 10, 2021

Here is an example for the extended header & footer configuration:

{
            index: 2,
            header: 'Share (EUR)',
            headerClasses: ['editable-table-header', 'text-center'],
            footer: '0',
            footerClasses: ['editable-table-footer', 'text-center', 'no-editor', 'sum-result'],
            name: 'share_eur',
            classes: flatten(['text-center', 'sum-col', 'percent-partial-value-row', additionalClasses]),
            isValid: isValidFloat,
            afterAdd: (value, cell) => updateSums(table, tableElement, tableDataFieldId, value, cell),
            afterChange: (value, cell) => updateSums(table, tableElement, tableDataFieldId, value, cell),
            convertOut: convertToFloat,
}

I've added header, headerClasses, footer, footerClasses to be able to use a such dynamic configuration for header & footer.

avp90 added a commit to avp90/jquery-editable-table that referenced this issue Sep 10, 2021
@avp90 avp90 linked a pull request Sep 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant