wenzhixin / bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
https://bootstrap-table.com/
MIT License
11.73k stars 4.44k forks source link

Is posible to use rowspan/colspan in javascript construction? #1414

Closed abazanvillanueva closed 9 years ago

abazanvillanueva commented 9 years ago

I've found this

Item ID
Item ID Item ID

And It works, but I want to make it in javascript, is there any way?

dabros commented 9 years ago

@abazanvillanueva - as stated in the documentation, options can be set using data-attributes or javascript, including column options

http://bootstrap-table.wenzhixin.net.cn/documentation/#column-options

Look at the examples, such as http://issues.wenzhixin.net.cn/bootstrap-table/#options/group-columns.html, and see the script block there for the code that creates them.

If that example isnt enough, keep looking till you see one creating column options with js constructor, then just the options rowspan and colspan like directed to.

Documentation, examples - all you need for this, and youll learn far more by learning how to find the answers there.

abazanvillanueva commented 9 years ago

So, thanks for answering, so I was looking for it, but my results weren´t positive. Maybe the problem is that I dont know how use it with KnockoutJS. Thanks anyway.

wenzhixin commented 9 years ago

https://github.com/wenzhixin/bootstrap-table-examples/blob/master/welcome.html?

abazanvillanueva commented 9 years ago

@wenzhixin thank you so much, that is the correct example.

dabros commented 8 years ago

@tmorehouse - ahh, no

dont post something that looks like clickbait spam to closed issue that you werent even part of

please delete immeditately

dabros commented 8 years ago

@tmorehouse

No

Do not spam links and vague messages

See https://github.com/wenzhixin/bootstrap-table/blob/master/CONTRIBUTING.md#using-the-issue-tracker and provide proper info here, not on some shady looking url

@wenzhixin @djhvscf - please delete the above posts with shady links

wenzhixin commented 8 years ago

shady links? I do know what you mean @dabros

dabros commented 8 years ago

@wenzhixin - looks like he deleted the posts himself, or djhvscf did