Class: H_ui_inputs_order_manager

H_ui_inputs_order_manager

Manager class for multiple input order fields.
Handles adding, removing, cleaning, and drag-hover logic.
Used as h.libs.ui_inputs_order_manager.

new H_ui_inputs_order_manager(base_name)

ui.js, line 4457
Name Type Description
base_name string The base name for the group.

Methods

add_field(base_id, editable, callback)

ui.js, line 4483
Adds a new input order field to the manager.
Name Type Description
base_id string Base id for the input.
editable boolean Whether the input is editable.
callback function Callback on value change.

clean_list()

ui.js, line 4547
check if there is element in list that don't exist anymore and reordonne remaining element to remove empty number

get_input(value, caller){H_ui_input_order|false}

ui.js, line 4517
Gets an input order instance by value.
Name Type Description
value number The value to search for.
caller H_ui_input_order Caller is the input order object that call get_input
Returns:
Type Description
H_ui_input_order | false The found input order or false.

get_input_hover(dom_element)

ui.js, line 4533
Gets the input order instance currently hovered during drag.
Name Type Description
dom_element HTMLElement The DOM element being hovered.