https://bugzilla.wikimedia.org/show_bug.cgi?id=70968

            Bug ID: 70968
           Summary: InlineMenuWidget should behave as a menu widget
           Product: OOjs UI
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
       Web browser: ---
   Mobile Platform: ---

Expected syntax:

  var menu = new oo.ui.InlineMenuWidget();
  menu.addItems( items );
  menu.chooseItem( item1 );
  menu.on( 'select', doStuff );

Actual syntax:

  var menu = new oo.ui.InlineMenuWidget();
  menu.getMenu().addItems( items );
  menu.getMenu().chooseItem( item1 );
  menu.getMenu().on( 'select', doStuff );

This feels unintuitive (especially with on() which is misleading to debug since
InlineMenuWidget has its own event handling but it never fires any events).
That InlineMenuWidget calls the functionality of MenuWidget via composition is
an implementation detail that should have no effect on the interface.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to