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

add single-row fetch & removes number #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

raftx24
Copy link
Member

@raftx24 raftx24 commented Feb 11, 2021

@aocneanu also money was removed.

@raftx24 raftx24 changed the title add single-row fetch add single-row fetch & removes number Feb 12, 2021
src/renderless/CoreTable.vue Outdated Show resolved Hide resolved
src/renderless/CoreTable.vue Outdated Show resolved Hide resolved
src/renderless/CoreTable.vue Outdated Show resolved Hide resolved
@@ -320,14 +321,65 @@ export default {
}
});
},
readRequest(method, exportMode = false, selection = false) {
fetchRow(dtRowId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we reuse most part of fetch()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do it but the final code was a bit dirtier. because fetchRow() has something in the middle of the method and for refactoring this we should refactor methods to many tiny methods but it makes our class a little complicated(because it isn't SRP!)

src/renderless/CoreTable.vue Outdated Show resolved Hide resolved
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 this pull request may close these issues.

2 participants