Class: ListMenu

caph.stripe.ui.component. ListMenu

new ListMenu(property)

A class which provides a list menu in stripe theme.

Parameters:
Name Type Description
property Object

An object which initializes this component. Refer to the details in caph.ui.base.component.ListMenu constructor.

Since:
  • 2.1.0
Example
var ListMenu = caph.require('stripe.ui.component.ListMenu');

 var listMenu = new ListMenu({
      width: 200,
      position: [10, 10],
      type: caph.ui.base.component.ListText.CHECKBOX,
      items: ['Superior', 'Ontario', 'Michigan'],
      selectedIndex: 3,
      on: {
          selected: function(message) {
              console.log(message.detail.item);
      }
 });

Extends

  • caph.ui.base.component.ListMenu

Methods

setOption(property)

Sets this component properties.

Parameters:
Name Type Description
property Object

Refer to the details in caph.ui.base.component.ListMenu#setOption.

Since:
  • 2.1.0
Example
var ListMenu = caph.require('stripe.ui.component.ListMenu');

 var listMenu = new ListMenu({
     width: 200,
     position: [10, 10]
 });
 
 listMenu.setOption({
     type: caph.ui.base.component.ListText.CHECKBOX,
     items: ['Superior', 'Ontario', 'Michigan'],
     selectedIndex: 3
 });