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') | |
} | |
}, |
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
if (!function_exists('check_connection')) { | |
/** | |
* Check database connection. | |
* | |
* @param $connection | |
* @return bool | |
*/ | |
function check_connection($connection) | |
{ | |
try { |