new H_ui_input_order(manager, base_id, editable, callback)
ui.js, line 3882
| 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 4237 -
Creates a drag avatar for the input order.
Returns:
Type Description HTMLElement The avatar element. -
create_drop_indication()
ui.js, line 4369 -
Creates the drop indication element(s).
-
down()
ui.js, line 4007 -
Moves the input down in the order.
-
end_drag()
ui.js, line 4225 -
Drag end handler.
-
exist(){boolean}
ui.js, line 4189 -
Checks if the input order field exists in the DOM.
Returns:
Type Description boolean True if exists. -
fetch_linked_elements()
ui.js, line 3941 -
Fetches linked elements that move together with this input order.
-
get_drop_state(event){string}
ui.js, line 4359 -
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 4312 -
Indicates the drop position during drag-and-drop.
Name Type Description eventEvent The drag event. -
insert_drop_indication(position)
ui.js, line 4410 -
Inserts the drop indication at the correct position.
Name Type Description positionstring 'before' or 'after'. -
is_inside(dom_element){boolean}
ui.js, line 4293 -
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 4147 -
Jumps to a specific value in the order.
Name Type Description new_valuenumber The value to jump to. -
keypress_edit(event)
ui.js, line 4174 -
Handles keypress events in edit mode.
Name Type Description eventKeyboardEvent The keyboard event. -
move(move_type, other)
ui.js, line 4080 -
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 4219 -
Drag move handler.
Name Type Description eventEvent The drag event. -
remove_drop_indication()
ui.js, line 4439 -
Removes the drop indication element(s).
-
set_value(value)
ui.js, line 4032 -
Sets the value and updates display/input.
Name Type Description valuenumber New value. -
start_drag(event)
ui.js, line 4211 -
Drag start handler.
Name Type Description eventEvent The drag event. -
toggle_buttons()
ui.js, line 4044 -
Toggles the enabled/disabled state of up/down buttons.
-
toggle_drag(state)
ui.js, line 4198 -
Toggles drag state for linked elements.
Name Type Description stateboolean True to enable drag state. -
toggle_edit()
ui.js, line 4098 -
Toggles edit mode for the input order.
-
up()
ui.js, line 3985 -
Moves the input up in the order.
-
verify_linked()
ui.js, line 3968 -
Checked if the linked items are still present