clear
  • Introduction
  • HTML
  • Html Structure
    • Header
    • Left Side Menu
    • Right Side Menu
    • Main Content
      • Buttons
      • Font Icons
      • Progress Bars
      • Maps
      • Lock Screen
  • FAQ's
  • SCSS
  • CSS Files
  • Javascript Files
  • Plugins
  • Start New Page
    • Menu Bar Fold
    • Boxed and Moveable Header
    • Moveable Header
    • Boxed and Fixed Header
    • Fixed Header and Menu
  • Vue Version
    • Basic Installation
      • Clear 1.7 installation
    • Basic Structure
      • Layout structure
      • Leftmenu structure
      • Start New Page
      • Changing layouts
  • Changing Color Scheme
  • Laravel Spark Skin
    • Spark Installation
    • Using .vue files
    • Adding External Plugins
  • Laravel Version
    • Changing skin
    • Changing Layouts
Powered by GitBook
On this page

Was this helpful?

  1. Laravel Spark Skin

Using .vue files

To use a .vue file from clear follow these steps:

  • Copy the required .vue file from clear to "resources/assets/js/components" directory.

  • Also copy the necessary css and js files to their respective folders.

  • Then register the component in the "resources/assets/js/app.js" file.

eg:

var app = new Vue({
    mixins: [require('spark')],
    components: {
        'invoice': require('./components/clear.vue')
    }
});
  • Then use the component in any of the blade files by using the component tag

<invoice></invoice>

Note:

  • The links to the vendors css files and images should be adjusted to the new directory structure.

PreviousSpark InstallationNextAdding External Plugins

Last updated 5 years ago

Was this helpful?