ons-list

Component to define a list, and the container for ons-list-item(s).

Usage #

<ons-list>
  <ons-list-header>Header Text</ons-list-header>
  <ons-list-item>Item</ons-list-item>
  <ons-list-item>Item</ons-list-item>
</ons-list>

Live Example #

See the Pen Alert, confirm and prompt dialogs by Onsen & Monaca (@onsen) on CodePen.

See also #

Attributes #

Name Type
Default Value
Description
modifier String The appearance of the list. Optional

Preset Modifiers #

Modifier Description
inset Inset list that doesn't cover the whole width of the parent.
noborder A list with no borders at the top and bottom.

Discussion #