Einsteiger Guide
// Assign a button title with the 'title' option. var buttonWithTitle = new OO.ui.ButtonWidget( { label: 'Button with Title', title: 'I am a button' } ); $( document.body ).append( buttonWithTitle.$element );
// Assign a button title with the 'title' option. var buttonWithTitle = new OO.ui.ButtonWidget( { label: 'Button with Title', title: 'I am a button' } ); $( document.body ).append( buttonWithTitle.$element );