new H_ui_input_order(manager, base_id, editable, callback)
ui.js, line 4299
| Name | Type | Description |
|---|---|---|
manager |
H_ui_inputs_order_manager | The manager instance. |
base_id |
string | Base id for the input. |
editable |
boolean | Whether the input is editable. |
callback |
function | Callback on value change. |
Methods
-
create_avatar(){HTMLElement}
ui.js, line 4654 -
Creates a drag avatar for the input order.
Returns:
Type Description HTMLElement The avatar element. -
create_drop_indication()
ui.js, line 4786 -
Creates the drop indication element(s).
-
down()
ui.js, line 4424 -
Moves the input down in the order.
-
end_drag()
ui.js, line 4642 -
Drag end handler.
-
exist(){boolean}
ui.js, line 4606 -
Checks if the input order field exists in the DOM.
Returns:
Type Description boolean True if exists. -
fetch_linked_elements()
ui.js, line 4358 -
Fetches linked elements that move together with this input order.
-
get_drop_state(event){string}
ui.js, line 4776 -
Gets the drop state ('before' or 'after') based on mouse position.
Name Type Description eventEvent The drag event. Returns:
Type Description string 'before' or 'after'. -
indicate_drop_position(event)
ui.js, line 4729 -
Indicates the drop position during drag-and-drop.
Name Type Description eventEvent The drag event. -
insert_drop_indication(position)
ui.js, line 4826 -
Inserts the drop indication at the correct position.
Name Type Description positionstring 'before' or 'after'. -
is_inside(dom_element){boolean}
ui.js, line 4710 -
Checks if a DOM element is inside the linked elements.
Name Type Description dom_elementHTMLElement The element to check. Returns:
Type Description boolean True if inside. -
jump_value(new_value)
ui.js, line 4564 -
Jumps to a specific value in the order.
Name Type Description new_valuenumber The value to jump to. -
keypress_edit(event)
ui.js, line 4591 -
Handles keypress events in edit mode.
Name Type Description eventKeyboardEvent The keyboard event. -
move(move_type, other)
ui.js, line 4497 -
Moves the DOM elements after/before another input.
Name Type Description move_typestring 'after' or 'before'. otherH_ui_input_order The other input order instance. -
move_drag(event)
ui.js, line 4636 -
Drag move handler.
Name Type Description eventEvent The drag event. -
remove_drop_indication()
ui.js, line 4855 -
Removes the drop indication element(s).
-
set_value(value)
ui.js, line 4449 -
Sets the value and updates display/input.
Name Type Description valuenumber New value. -
start_drag(event)
ui.js, line 4628 -
Drag start handler.
Name Type Description eventEvent The drag event. -
toggle_buttons()
ui.js, line 4461 -
Toggles the enabled/disabled state of up/down buttons.
-
toggle_drag(state)
ui.js, line 4615 -
Toggles drag state for linked elements.
Name Type Description stateboolean True to enable drag state. -
toggle_edit()
ui.js, line 4515 -
Toggles edit mode for the input order.
-
up()
ui.js, line 4402 -
Moves the input up in the order.
-
verify_linked()
ui.js, line 4385 -
Checked if the linked items are still present