This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box box-success"> | |
<div class="box-header with-border"> | |
<h3 class="box-title">Removable</h3> | |
<div class="box-tools pull-right"> | |
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> | |
</div> | |
</div> | |
<div class="box-body"> | |
The body of the box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Box color variations | |
&.box-primary { | |
border-top-color: @light-blue; | |
} | |
&.box-info { | |
border-top-color: @aqua; | |
} | |
&.box-danger { | |
border-top-color: @red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<adminlte-vue-box color='primary'></adminlte-vue-box> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
export default { | |
data() { | |
return { | |
isCollapsed : this.collapsed, | |
isRemovable: this.removable, | |
isSolid: this.solid, | |
} | |
}, | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<adminlte-vue-box title="My title box"></adminlte-vue-box> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<adminlte-vue-box>Here the body content it could be simple text or HTML code!</adminlte-vue-box> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<adminlte-vue-box v-on:removed="onRemoved"></adminlte-vue-box> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch: { | |
collapsed: function () { | |
this.isCollapsed= this.collapsed | |
}, | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods: { | |
remove() { | |
this.removed = true | |
this.$emmit('removed') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch: { | |
removed: function () { | |
removed ? this.$emmit('removed') : this.$emmit('unremoved') | |
} | |
}, |