AwardsBestowalBulkTodo

AwardsBestowalBulkTodo

Awards Bestowal Bulk To-Do Controller

Populates the grid "Complete Check" bulk-action modal with the bestowals selected in the grid when the modal opens, so a single named check can be completed across all of them. Server-side eligibility decides which selected bestowals are actually flipped.

Constructor

new AwardsBestowalBulkTodo()

Source:

Methods

applySelection(ids, rows)

Source:
Parameters:
Name Type Description
ids Array.<string>
rows Array.<{id: string, options: Array.<object>}>

buildOptions(rows)

Source:
Parameters:
Name Type Description
rows Array.<{id: string, options: Array.<object>}>

handleShow()

Description:
  • Read the current grid selection when the modal opens.

Source:

parseOptions(raw)

Source:
Parameters:
Name Type Description
raw string

readSelection(button) → {Array.<string>}

Description:
  • Resolve the selected bestowal ids from the live grid checkboxes, falling back to the serialized selection stashed on the bulk-action button.

Source:
Parameters:
Name Type Description
button HTMLElement | null
Returns:
Type
Array.<string>

readSelectionDetails(button) → {Object}

Description:
  • Resolve the selected bestowal ids and row metadata from the live grid checkboxes, falling back to the serialized selection payload.

Source:
Parameters:
Name Type Description
button HTMLElement | null
Returns:
Type
Object

selectionFromCheckboxes(checkboxes)

Source:
Parameters:
Name Type Description
checkboxes Array.<HTMLInputElement>

selectionRowFromDataset(row) → {Object}

Description:
  • Normalize a selection row read from a checkbox or serialized dataset.

Source:
Parameters:
Name Type Description
row object

Selection row.

Properties
Name Type Attributes Description
id string <optional>

Selected bestowal identifier.

bulkTodoOptions string <optional>

JSON-encoded to-do options.

Returns:

Normalized selection row.

Type
Object

updateLookupUrl(ids)

Source:
Parameters:
Name Type Description
ids Array.<string>