Files
Basalt/docs/objects/Dropdown/getOffset.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

510 B

getOffset

Returns the current index offset

Returns:

  1. number offset value

Usage:

  • Creates a default dropdown with 6 entries and sets the offset to 3, also prints the current offset.
local mainFrame = basalt.createFrame()
local aDropdown = mainFrame:addDropdown()
      :addItem("1. Entry")
      :addItem("2. Entry")
      :addItem("3. Entry")
      :addItem("4. Entry")
      :addItem("5. Entry")
      :addItem("6. Entry")
      :setOffset(3)
basalt.debug(aDropdown:getOffset())