Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo code in @bower/gentelella/build/js/custom.js #26

Closed
Alsodan opened this issue Sep 15, 2017 · 3 comments
Closed

Demo code in @bower/gentelella/build/js/custom.js #26

Alsodan opened this issue Sep 15, 2017 · 3 comments

Comments

@Alsodan
Copy link

Alsodan commented Sep 15, 2017

custom.js is placed in theme asset. It has been taken from @bower/gentelella/build/js directory, becouse there is in vendor\yiister\yii2-gentelella\assets\ThemeAsset.php stand:

public $sourcePath = '@bower/gentelella/build/';

custom.js has demo code for Charts, Autocomplete, etc. It has 116Kb!

Maybe need use custom.js from @bower/gentelella/src/js/ ? It has no demo data and its size is 7Kb.

@Alsodan Alsodan changed the title Demo code in vendor/bower-asset/gentelella/build/js/custom.js Demo code in @bower/gentelella/build/js/custom.js Sep 15, 2017
@fps01
Copy link
Member

fps01 commented Nov 1, 2017

@Alsodan hello. Sorry for late. I will try your solution.

@Alsodan
Copy link
Author

Alsodan commented Nov 7, 2017

In my application i use:

class CorrectThemeAsset extends AssetBundle
{
    public $sourcePath = '@bower/gentelella/';
    public $css = [
        'build/css/custom.min.css',
    ];
    public $js = [
        'src/js/custom.js',
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapPluginAsset',
        'rmrevin\yii\fontawesome\AssetBundle',
        'yiister\gentelella\assets\BootstrapProgressbar',
    ];
}

@fps01
Copy link
Member

fps01 commented Nov 12, 2017

@Alsodan I tried your code above. It threw Uncaught TypeError: $(...).smartresize is not a function js error in browser console.

@fps01 fps01 closed this as completed in 81080a3 Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants