Skip to main content

thread

The thread object provides functions for fetching and utilizing thread data.

select

pb.thread.select(board_id, [callback], [options])

Produces a dialog to allow selection of a thread from the specified board ID from a dropdown list. If a callback function is supplied the selected thread ID will be supplied as a parameter.

ParamTypeDescription
board_idnumberThe numerical ID of the board to obtain threads from.
[callback]selectCallbackThe function to run when clicking the Select button in the dialog.
[options]selectOptionsParameters to be supplied to the dialog.

selectOptions

An object containing available options to be supplied to the thread.select method.

Properties

NameTypeDescription
[title]stringThe title to display in the title bar of the dialog.

selectCallback

A callback function to run after making a selection in the thread.select dialog.

ParamTypeDescription
[threadId]stringThe numerical ID of the selected thread.