Skip to content

Commit

Permalink
fix chips example
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Jan 14, 2018
1 parent 1ef505f commit db1fb8c
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions examples/kitchen-sink/pages/chips.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,39 @@
<f7-chip text="Blue Chip" color="blue"></f7-chip>
<f7-chip text="Orange Chip" color="orange"></f7-chip>
<f7-chip text="Pink Chip" color="pink"></f7-chip>
</div>
</f7-block>
</f7-page>
</template>
<script>
import { f7Navbar, f7Page, f7BlockTitle, f7Chip, f7Block, f7Icon } from 'framework7-vue';
import {
f7Navbar,
f7Page,
f7BlockTitle,
f7Chip,
f7Block,
f7Icon
} from 'framework7-vue'
export default {
components: {
f7Navbar,
f7Page,
f7BlockTitle,
f7Chip,
f7Block,
f7Icon,
},
methods: {
deleteChip(e) {
const $$ = this.$$;
const app = this.$f7;
app.dialog.confirm('Do you want to delete this tiny demo Chip?', () => {
$$(e.target).parents('.chip').remove();
});
},
},
};
export default {
components: {
f7Navbar,
f7Page,
f7BlockTitle,
f7Chip,
f7Block,
f7Icon
},
methods: {
deleteChip(e) {
const $$ = this.$$
const app = this.$f7
app.dialog.confirm('Do you want to delete this tiny demo Chip?', () => {
$$(e.target)
.parents('.chip')
.remove()
})
}
}
}
</script>

0 comments on commit db1fb8c

Please sign in to comment.