Skip to content

Commit 10a6c56

Browse files
committed
EDU-8384: Update RS301000 file
1 parent 440e2d8 commit 10a6c56

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

  • ModernUI/T290/PhoneRepairShop/FrontendSources/screen/src/development/screens/RS/RS301000

ModernUI/T290/PhoneRepairShop/FrontendSources/screen/src/development/screens/RS/RS301000/RS301000.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
PXView, PXFieldOptions, PXFieldState, controlConfig,
55
gridConfig, GridPreset,
66
fieldConfig,
7-
PXActionState
7+
PXActionState,
8+
handleEvent, CustomEventType, RowCssHandlerArgs
89
} from "client-controls";
910

1011
@graphInfo({
@@ -18,6 +19,15 @@ export class RS301000 extends PXScreen {
1819
RepairItems = createCollection(RSSVWorkOrderItem);
1920
Labor = createCollection(RSSVWorkOrderLabor);
2021

22+
@handleEvent(CustomEventType.GetRowCss, { view: "RepairItems" })
23+
getTransactionsRowCss(args: RowCssHandlerArgs) {
24+
if (args?.selector?.rowIndex === 1) {
25+
console.log("Row CSS changed", args);
26+
return "bold-row";
27+
}
28+
return undefined;
29+
}
30+
2131
}
2232

2333
export class RSSVWorkOrder extends PXView {
@@ -50,7 +60,6 @@ export class RSSVWorkOrder extends PXView {
5060
preset: GridPreset.Details
5161
})
5262
export class RSSVWorkOrderItem extends PXView {
53-
PressMe : PXActionState;
5463
RepairItemType: PXFieldState;
5564
InventoryID: PXFieldState<PXFieldOptions.CommitChanges>;
5665
InventoryID_description: PXFieldState;

0 commit comments

Comments
 (0)