Skip to content

Aggrid how use colSpan? #3621

Closed Answered by falkoschindler
erfaenda asked this question in Q&A
Aug 28, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

You can define a JavaScript function for the colSpan property like this:

':colSpan': '(params) => params.data.isCatalog ? 3 : 1',

The leading colon : indicates a string that needs to be translated to a JavaScript object on the client.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@erfaenda
Comment options

@CSharpDummy
Comment options

@erfaenda
Comment options

Comment options

You must be logged in to vote
1 reply
@erfaenda
Comment options

Answer selected by erfaenda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants