Skip to content

Latest commit

 

History

History
executable file
·
83 lines (78 loc) · 2.64 KB

CarditemButton.md

File metadata and controls

executable file
·
83 lines (78 loc) · 2.64 KB

carditem-button-headref

CardItem Button

Include button prop with <CardItem> to achieve onClick function with card items.

Preview ios carditem-button-headref Preview android carditem-button-headref

Syntax

{% codetabs name="React Native", type="js" -%} import React, { Component } from "react"; import { Container, Header, Content, Card, CardItem, Text, Body } from "native-base"; export default class CardItemButton extends Component { render() { return (

<CardItem header button onPress={() => alert("This is Card Header")}> NativeBase <CardItem button onPress={() => alert("This is Card Body")}> Click on any carditem <CardItem footer button onPress={() => alert("This is Card Footer")}> GeekyAnts ); } } {%- language name="Vue Native", type="vue" -%} NativeBase Click on any carditem.
GeekyAnts

<script> export default { methods: { handleHeaderClick: function() { alert("This is Card Header"); }, handleBodyClick: function() { alert("This is Card Body"); }, handleFooterClick: function() { alert("This is Card Footer"); } } }; </script>

{%- endcodetabs %}