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

Implement column spanning #55

Open
imballinst opened this issue Feb 18, 2020 · 3 comments
Open

Implement column spanning #55

imballinst opened this issue Feb 18, 2020 · 3 comments

Comments

@imballinst
Copy link
Owner

Yeah sir how to pass mulitple prop in headers array
Eg,
{ title: "OWNER", prop: "name,mobile", sortable: true, filterable: true },
in attached file there is two lables Owner Name & Mobile i need to display in one td with lables,
new_eg

Originally posted by @masnoonmulla in #54 (comment)

@masnoonmulla
Copy link

Hi @imballinst

const new_array = arrayWithData(
(values,index) =>
( {...value,owner:NAME: ${value.name}, MOBILE: ${value.mobile} } )
)

header = [
{ title: "OWNER", prop: "owner", sortable: true, filterable: true },
]

it's worked for me...

@imballinst
Copy link
Owner Author

imballinst commented Feb 18, 2020

@masnoonmulla oooh! I see. I thought you wanted to do something like:

Owner
Name Mobile
Jack 123123
Jack 123123
Jack 123123

In that case, yes, your solution works.

@masnoonmulla
Copy link

@imballinst you can implement that also for future..
Thank You so much for your help...

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

No branches or pull requests

2 participants