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.
Param | Type | Description |
---|---|---|
board_id | number | The numerical ID of the board to obtain threads from. |
[callback] | selectCallback | The function to run when clicking the Select button in the dialog. |
[options] | selectOptions | Parameters to be supplied to the dialog. |
selectOptions
An object containing available options to be supplied to the thread.select method.
Properties
Name | Type | Description |
---|---|---|
[title] | string | The 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.
Param | Type | Description |
---|---|---|
[threadId] | string | The numerical ID of the selected thread. |