লক্ষ্য করুন: প্রকাশ করার পর, পরিবর্তনগুলো দেখতে আপনাকে আপনার ব্রাউজারের ক্যাশে পরিষ্কার করার প্রয়োজন হতে পারে।

  • ফায়ারফক্স / সাফারি: পুনরায় লোড-এ ক্লিক করার সময় শিফট টিপে ধরে রাখুন, অথবা হয় Ctrl-F5 বা Ctrl-R টিপুন (ম্যাকে ⌘-R টিপুন)
  • গুগল ক্রোম: Ctrl-Shift-R (ম্যাকে ⌘-Shift-R) টিপুন
  • এজ: Ctrl ধরে রাখা অবস্থায় Refresh-এ ক্লিক করুন, অথবা Ctrl-F5 টিপুন।
  • অপেরা: Ctrl-F5 টিপুন।
function test( config ) {
    OO.ui.TextInputWidget.call( this, config );
    OO.ui.mixin.LookupElement.call( this, config );
}
OO.inheritClass( test, OO.ui.TextInputWidget );
OO.mixinClass( test, OO.ui.mixin.LookupElement );
test.prototype.getLookupRequest = function () {
    var value = this.getValue();
    
    return new mw.ForeignApi('https://en.wikipedia.org/w/api.php').get({
        action:'opensearch',
        search: value,
        limit: 5, // Number of suggestions to retrieve
        namespace: 0, // Search only in the main namespace
        format: 'json'
    });
};

test.prototype.getLookupCacheDataFromResponse = function ( response ) {
    return response[1];
};

test.prototype.getLookupMenuOptionsFromData = function ( data ) {
    var items = [];
    data.forEach( function ( datum ) {
        items.push( new OO.ui.MenuOptionWidget( {
            data: datum,
            label: datum
        } ) );
    } );
    return items;

};
var testInput = new test({
	highlight: false
    });
$( 'body' ).append( testInput.$element );
testInput.$element.addClass('custom-class');
testInput.$element.css('border', '5px solid black');