Grid Cell Classes
Class Name Element Type Description Example Usage .wj-cellCell Base cell styling in FlexGrid Applied to all grid cells automatically .readonlyCell Marks cells as read-only Cells with no edit permission .wj-headerHeader Cell Column header base styling Applied to all headers automatically .wj-row-headerRow Header Row header cell styling Applied to row headers automatically .wj-frozen-rowRow Marks frozen header rows Frozen panes implementation .wj-frozen-columnColumn Marks frozen side columns Frozen panes implementation .inner-cellCell Content Wrapper for cell inner content Styling cell text and nested elements
Risk Level Classes
These classes are commonly used with cell decorators to highlight risk levels in FMEA and HARA workflows:
Class Name Risk Level Typical Background Text Color RPN Range .rpn1Low #eaf5e9 (green) #1d5f20 (dark green) 1–150 .rpn2Medium #fff3d2 (yellow) #735602 (dark yellow) 151–350 .rpn3High #f8eae7 (red) #ab1c00 (dark red) 351+ .boldColEmphasis — — Applied with risk classes
Example CSS definitions for risk levels:
.rpn1 {
background-color : #eaf5e9 !important ;
color : #1d5f20 !important ;
}
.rpn2 {
background-color : #fff3d2 !important ;
color : #735602 !important ;
}
.rpn3 {
background-color : #f8eae7 !important ;
color : #ab1c00 !important ;
}
.boldCol {
font-weight : 600 ;
}
Comparison Mode Classes
When comparing document revisions or baselines, RISKSHEET applies visual indicators using these classes:
Class Name Purpose Visual Indicator Description .changedModified cell Yellow highlight Cell value differs from baseline/previous revision .new-rowAdded row Green highlight Entire row added (new work item) .removed-rowDeleted row Red highlight Entire row removed (deleted work item) .not-comparedNot applicable Gray highlight Column type does not support comparison .comparison-master-changeMaster item changed Orange border Parent work item property changed .comparison-task-addedDownstream item added Green background Mitigation task linked to master .comparison-task-removedDownstream item removed Red background Mitigation task unlinked from master
Comparison classes are automatically applied when viewing revisions side-by-side or comparing against a baseline. Users can see exactly which cells, rows, and linked items have changed between versions.
Column group headers can be styled using custom classes assigned via headerGroupCss property:
Class Name Purpose Typical Use .headSysReqSystem Requirement group Green background for requirement columns .headFinalRankingFinal Ranking group Green background for ranking columns .headMitigationMitigation group Blue background for mitigation columns .headRiskRisk group Red background for risk assessment columns
Example header group styling:
{
"styles" : {
".firstRow .headSysReq" : "background-color: rgba(62, 175, 63, 0.12) !important; color: #2A792D !important;" ,
".lastRow .headSysReq" : "background-color: #FFF !important; color: #2A792D !important;" ,
".firstRow .headFinalRanking" : "background-color: rgba(62, 175, 63, 0.12) !important; color: #2A792D !important;" ,
".lastRow .headFinalRanking" : "background-color: #FFF !important; color: #2A792D !important;"
}
}
Data Type Display Classes
Class Name Data Type Purpose .multi-enum-listMulti-Enum Container for multi-select enum values .multi-enum-itemMulti-Enum Individual enum tag/chip .multi-item-linkMulti-Item Link Container for multiple linked items .item-link-newItem Link Marks newly created (pending) links with asterisk .task-linkTask Link Styling for task/mitigation link columns .system-fieldSystem Styling for internal system fields
Example multi-enum styling:
.multi-enum-list {
display : flex ;
gap : 4 px ;
flex-wrap : wrap ;
}
.multi-enum-item {
background-color : #e3f2fd ;
color : #1976d2 ;
padding : 2 px 8 px ;
border-radius : 12 px ;
font-size : 12 px ;
white-space : nowrap ;
}
Review and Approval Classes
Class Name Purpose Usage .risk_reviewsReview container Wraps review comments and approvals .review-commentIndividual review Single review entry styling .review-approvedApproval status Marks approved reviews .review-pendingPending review Marks pending/pending-approval reviews .review-rejectedRejection status Marks rejected approvals
State and Interaction Classes
Class Name State Description .wj-frozen-paneLayout Indicates frozen pane boundary .wj-selectSelection Currently selected cell or row .wj-editingEdit Mode Cell actively being edited .wj-groupGrouping Row group indicator .wj-alt-rowAlternating Alternate row coloring for readability .wj-validation-errorValidation Cell with validation error
Enum Status Classes
When using cell decorators with enum fields, custom classes highlight enum values:
"cellDecorators" : {
"statusHighlight" : "function(info) {
var status = info . item [ 'status' ];
$ ( info . cell ). toggleClass ( 'statusActive' , status === 'active' );
$ ( info . cell ). toggleClass ( 'statusInactive' , status === 'inactive' );
$ ( info . cell ). toggleClass ( 'statusPending' , status === 'pending' );
} "
} ,
"styles" : {
".statusActive" : "background-color: #c8e6c9 !important; color: #2e7d32 !important;" ,
".statusInactive" : "background-color: #ffccbc !important; color: #d84315 !important;" ,
".statusPending" : "background-color: #fff9c4 !important; color: #f57f17 !important;"
}
CSS Class Application Priority
Highest Priority:
1. Inline styles (style="...") with !important
2. !important flag in class definitions
3. Specific selector (e.g., .rpn1.boldCol)
4. Class selector (.rpn1)
Lowest Priority:
5. Element selector (td, .wj-cell)
When cell decorators apply multiple classes, or when your custom classes conflict with FlexGrid’s default styling, always use the !important flag in your CSS definitions. This ensures your decorator styles take precedence over built-in styles.
Custom Class Naming Conventions
When creating custom CSS classes for decorators, follow these conventions:
Convention Example Usage Risk-based .risk-critical, .risk-high, .risk-mediumFMEA/HARA severity styling Status-based .status-active, .status-blocked, .status-reviewWorkflow state indicators Column group .head-requirements, .head-mitigationsHeader group styling Data highlight .highlight-change, .highlight-conflictEmphasis and warnings Layout .frozen-header, .row-group-titleStructural styling
Class Selector Patterns
Common CSS selector patterns used in RISKSHEET configurations:
/* Target specific row class */
.firstRow .headSysReq { background : rgba ( 62 , 175 , 63 , 0.12 ); }
/* Target last row in group */
.lastRow .headSysReq { background : #FFF ; }
/* Combine multiple classes */
.rpn3.boldCol { font-weight : 700 ; color : #ab1c00 ; }
/* Target nested elements */
.inner-cell .multi-enum-item { padding : 2 px 4 px ; }
Visual Style Decision Matrix
Requirement CSS Classes Decorators Static column style cellCss property— Conditional cells — cellRendererRow header style — rowHeader rendererValue-based color — cellDecoratorsEnum highlighting — cellDecoratorsRisk level color — cellDecoratorsComparison mode Automatic Not applicable
Support Tickets Source Code
risksheet.json
AppConfigHelper.ts
AppConfig.ts
RiskSheetContextMenu.ts
CellEditorFormatter.ts