new ThreadTitleSelector(args)
Select a thread title
Name | Type | Description |
---|---|---|
args |
Object | widget arguments |
Example
var selector = new ThreadTitleSelector({
target_thread_id : 1234, // initial target thread ID
target_forum_id : 12, // initial target forum ID
target_thread_desc: 'initial target name',
mode : 'edit', // or 'merge' to pick a merge target by title
thread_id : 2345, // current thread ID
forum_id : 23, // current forum ID
bb : bb, // BulletinBoard object
ss : ss, // SharedStore object
callback : function(keys) { ... }, // called with the current data
container : notification_appended_to_this,
});
Extends
Methods
-
check(thread_id){jQuery.Promise}
check whether the specified thread is a valid merge target
-
Name Type Description thread_id
Number thread to check Returns:
Type Description jQuery.Promise -
Give focus to this widget
-
-
val(value){Object}
Get/set widget's value
-
Name Type Description value
Object new value Returns:
Type Description Object (new) value Example
widget.val({ mode: 'merge', // or 'edit' target_thread_id : 1234, target_thread_desc: 1234, });