<template>
  <nb-container :style="{ backgroundColor: '#fff' }">
    <nb-header>
      <nb-left>
        <nb-button
          transparent
          :onPress="() => this.props.navigation.openDrawer()"
        >
          <nb-icon name="menu" />
        </nb-button>
      </nb-left>
      <nb-body>
        <nb-title>Buttons</nb-title>
      </nb-body>
      <nb-right />
    </nb-header>
    <nb-content padder>
      <nb-list>
        <nb-list-item
          v-for="listItem in listItemArr"
          :key="listItem.route"
          button
          :onPress="() => this.props.navigation.navigate(listItem.route)"
        >
          <nb-left>
            <nb-text>
              {{ listItem.text }}
            </nb-text>
          </nb-left>
          <nb-right>
            <nb-icon name="arrow-forward" class="body-icon-color" />
          </nb-right>
        </nb-list-item>
      </nb-list>
    </nb-content>
  </nb-container>
</template>

<script>
export default {
  data() {
    return {
      listItemArr: [
        {
          route: "Default",
          text: "Default Button"
        },
        {
          route: "Outline",
          text: "Outline Button"
        },
        {
          route: "Rounded",
          text: "Rounded Button"
        },
        {
          route: "Block",
          text: "Block Button"
        },
        {
          route: "Full",
          text: "Full Button"
        },
        {
          route: "Custom",
          text: "Custom Size Button"
        },
        {
          route: "Transparent",
          text: "Transparent Button"
        },
        {
          route: "IconBtn",
          text: "Icon Button"
        },
        {
          route: "Disabled",
          text: "Disabled Button"
        }
      ]
    };
  }
};
</script>

<style>
.body-icon-color {
  color: #999;
}
</style>
