Home Analyst Portal

Multiple CSS Classes in View-Example

James_JohnsonJames_Johnson Customer Advanced IT Monkey ✭✭✭
edited March 2020 in Analyst Portal

Is it possible to add multiple CSS classes to the "cssClass" field in the View-Example templates?


For example: I'm trying to add the no-padding class to one of the columns. I've tried with no separator, comma, and semi colon.

"cssClass": "col-sm-12 no-padding",
                        "content": {
                            "cssClass": "row",
                            "content": [
                                {
                                    "Id": "no-padding-col",
                                    "cssClass": "col-md-12; no-padding",
                                    "type": "viewPanel",
                                    "ViewPanelId": "html-example"
                                }
                            ]
                        }
                    }
"cssClass": "col-sm-12 no-padding",
                        "content": {
                            "cssClass": "row",
                            "content": [
                                {
                                    "Id": "no-padding-col",
                                    "cssClass": "col-md-12; no-padding",
                                    "type": "viewPanel",
                                    "ViewPanelId": "html-example"
                                }
                            ]
                        }
                    }

Best Answer

  • James_JohnsonJames_Johnson Customer Advanced IT Monkey ✭✭✭
    Answer ✓

    It appears that my code above was correct, the page just wasn't refreshing to pull the latest version. Now that it did this morning both css class are being applied.

Answers

  • James_JohnsonJames_Johnson Customer Advanced IT Monkey ✭✭✭
    edited March 2020

    Also, I've seen formatted code blocks in a few posts, how do we set those up?

    It's a sneaky formatting button.

  • James_JohnsonJames_Johnson Customer Advanced IT Monkey ✭✭✭
    Answer ✓

    It appears that my code above was correct, the page just wasn't refreshing to pull the latest version. Now that it did this morning both css class are being applied.

Sign In or Register to comment.