Discussion on Xenon - Bootstrap Admin Theme with AngularJS

Discussion on Xenon - Bootstrap Admin Theme with AngularJS

Cart 3,090 sales
Well Documented

Laborator supports this item

Supported

This author's response time can be up to 1 business day.

520 comments found.

With your help, I was able to change the layout by changing 1.app-body.html 2.controllers.js

I would like to also remove the horizontal left menu items – email, notifications, language and the chat on the right.

Hi again

I am glad that it worked for you.

To your second question:

In this file you have contents of User info navbar:

xenon-angular/app/tpls/layout/user-info-navbar.html

There you remove markup. I’ve also removed it for you, and if you want it copy here: http://cl.ly/ZCNM

It has all elements requested by you removed.

Cheers


Arlind

Hi Steve

From these errors I am unable to understand the errors where they come from.

You must use a testing tool for AngularJS -> Protractor which tests your app. Also note that you need to execute the index.html in web server, not directly open that file in chrome/firefox/or any other browser.


Arlind

It looks like any image loaded to will distort the box. Is there any way to stretch or center the image to fit the box ?

Hi inmyth

You must serve same size thumbnails in order to maintain the rows of images. However you can still specify min-height css property to make all image boxes have the same height initially.


Arlind

Having some difficulty with AngularJS version (I am a newbie,,,).

1. Can’t get Timeline to work. Suspect I need to configure something as I did with devExpress

2. I want to create an app with a login etc. I want to start with the minimum configuration and add to it.

3. How do you eliminate the chat at the footer? Thanks

Hi SteveZL

Sure, here the answers to your questions:

1. If you are talking about this timeline: http://themes.laborator.co/xenon/angular/#/app/extra-timeline it has nothing related to DevExpress, you can add elements to the page it doesn’t need JavaScript to add elements here.

2. Everything starts in xenon-files/angular/index.html so there are these main files

xenon-files/angular/app/js/app.js
xenon-files/angular/app/js/controllers.js
xenon-files/angular/app/js/directives.js
xenon-files/angular/app/js/factory.js

In app.js you have defined the routes, so then you can remove them if you want.

In factory.js you have menu elements.

In controllers.js is main logic of controllers.

3. To eliminate the chat footer open: ~/xenon-files/angular/app/tpls/layout/app-body.html

Remove this markup:

<footer-chat></footer-chat>

Hopefully these answers will help you to get started with.


Arlind

What is the best way of using your AngularJS implementation without worrying about new updates.

Hi SteveZL

We regularly publish full changelog for each new update. The changelog is available in BitBucket.org, if you have an account there I will send you the invite so you will see always what has changed in the newest updates.


Arlind

Hi,

I just purchased this theme. It contains HTML files only. No PHP files, no PSD’s as mentioned “ThemeForest Files Included Layered PSD, PHP Files, HTML Files, CSS Files, JS Files, PSD”

Can you please look into what is the problem. The download I got is some 20MB.

Thanks.

I can find them now :)

Glad to hear that :)

Hi,

I am trying to use the daterange datepicker with span (Date Range w/ Predefined Ranges). I need to capture the date change event in AngularJS. Let me know if there is a way.

Thanks

Hi vsrm

If you need to watch for events, then do not use the daterange directive, instead use direct instance implementation:

var $el = $("#range-picker");

$el.daterangepicker({...});

// Events
$el.on('apply.daterangepicker', function(ev){});

To read more about the events you can listed, click here: https://github.com/dangrossman/bootstrap-daterangepicker

Hopefully this will help you.


Arlind

with the blank-sidebar.html is it possible to have the user-info-navbar stick to the top ?

Hi dear SaijoGeroge

Firstly I want to thank you for your generous support. We are really happy about that.

About the sticky user info navbar, we will add this feature in the next update, thanks for your idea. If you want the quickfix how to do that I will send you here the CSS (or LESS) implementation.

About the images, you can use text-center class, because images are treated as inline-block elements so we have general class for inline elements alignment.

Once again many thanks for your support :)


Arlind

no worries Arlind and thanks for your help. The CSS implementation would be awesome.

Also in your opinion what is the best way to future proof the html installation? I am not sure what to expect when the next update us rolled out. Do you offer a changelog which runs through the various changes to each of the files that are included?

Regards

Saijo

Hi Saijo

Sure, here you have the LESS implementation:

http://pastebin.com/E6aqu6D5

Just add it to the bottom of this file:

~/xe/assets/less/xenon-less/user-info-navbar.less

Or if you want just the plain CSS:

@media screen and (min-width: 768px) {
  .fixed-user-info-navbar .page-container .user-info-navbar {
    position: fixed;
    left: 340px;
    right: 0;
    top: 0;
    margin: 0;
    z-index: 100;
  }
  .fixed-user-info-navbar .page-container .main-content {
    padding-top: 105px;
  }
  .fixed-user-info-navbar .page-container .sidebar-menu.collapsed ~ .main-content .user-info-navbar {
    left: 80px;
  }
}

About the changelog, you can view it online in BitBucket.org, just give me your username and I will invite you to see the changes in GitRepository.


Arlind

Love the theme and all of its components!! But I was wondering if it is possible to have an item in the sidebar with subitems to be clickable (open an URL) instead of just opening the sub items. (and effectively cancelling the rerouting?)

Hi

I understand what do you mean. For some reasons we always applied this technique (the current in demo site) so when an item has sub elements it will not be clickable anymore.

If you want to achieve that, then open assets/js/xenon-custom.js

Go to line 1244 and replace sidebar_menu_item_collapse function contents with this one below, and it should do the trick:

function sidebar_menu_item_collapse($li, $sub)
{
    if($li.data('is-busy'))
        return;

    if($li.hasClass('active'))
    {
        var href = $li.find('> a').attr('href');
        window.location.href = href;
        return;
    }
}


Arlind

Thank you! Keep up the good works.

You’re welcome!

Using AngularJS version – I wanted to minimize the navbar. This doesnt work unless you have a menu assigned to the nav bar. In my case I use the sidebar for my menu.

Hi SteveZL

If you are talking about horizontal menu open controller.js:

$rootScope.layoutOptions = {
    horizontalMenu: {
        isVisible        : false,
        isFixed            : true,
        minimal            : true, // This will do the trick
        ...
    }
}

I am not sure if I understand you properly. If not send me a screenshot of what you want to change.


Arlind

To minimize update problems, should I create a script and insert it after:

<!- JavaScripts initializations and stuff ->
<script src="app/js/xenon-custom.js"></script>
<script src="app/js/mycustom.js"></script>

here I can set my layout?

Hi Steve

You should focus on app.js and controller.js

If you know how to create angular modules, then create module and call it from app.js, see screenshot: http://cl.ly/ZC7m

So from there you can create controllers and stuff.


Arlind

I love the theme. Im looking at the AngularJS version because as a programmer I feel more comfortable with objects and variables.

1. I like your feature set and would like to start with a minimum configuration sidebar (w menu) and horizontalMenu for the user login and Titles.

Im having a hard time getting the layout to reflect the changes I make in controller.js. I am following your documentation section 6.3.

2. You have a setup where you show all the themes functionality could you put together a minimum configuration that has the most popular layout and a menu item with a blank page. Then show us how to add features.

Thanks

Glda to hear that :)

Ylli

Do you have a minimal version of the horizontal-menu.html. I’m deleting alot of code and hope that it wont break anything.

Hi Steve

To handle with the Horizontal menu, open app/js/services.js

On line 214 you have this function “prepareHorizontalMenu”

So from there you can set and remove links. It is completely object oriented so its easy to understand how menu items are added.


Arlind

Hi again, Thanks for your earlier support.And the new query is

I am using angular.js version of the theme.Charts in this theme have been done by jquery and it is not in Angular format.Because it doesn’t follow any separate controller for charts to pass json data between controllers and to use data source dynamically.Chart scripts have been written in html page itself. Any update in code?

Hi vembu

We have moved the charts with its default implementation as DevExpress doesn’t provide any AngularJS alternative to implement.

You can assign charts to directives but this is not very flexible, the best way to do is the old way of implementation like in static HTML, there you can change parameters.

You can do only one change that will fit perfectly with AngularJS (as now its not implemented yet). Put the javascript logic executed in charts into MainCtrl controller, or any custom controller you create and then initialize the charts from that controller.


Arlind

the top editor on the editors page does not work with images. you click the image button, it popups up asking for URL, you put the url in and then it doesn’t insert it into the editor. i have tried in multiple browsers

Hi itsmill3rtime

Yes, we are aware of this, we will fix it in the next update of Xenon.


Arlind

Hi again, Laborator.

I’ve found that “sticky” footer class works wrong. On pages with fixed top menu there are additional scrolling after the footer (for example, see blank-menu-horizontal-minimal.html on demo). Can you fix this?

Thanks again for great theme!

Hi

I am now aware of this and we will fix this.

Thanks for your feedback, we would be very thankful to you if you can rate this theme.


Arlind

Sure, I’ll rate your theme. But I can’t find where I might do this, can you forward me?

Hi again,

to review/rate a theme go to the top-right menu where your username is and on the drop-down menu you’ll find “Downloads”

Kind Regards,
Art

Bravo ju qofte cuna. Me te vertete ju beni nje pune te jashtezaknoshme. Suksese!

Pershendetje i nderuar, faleminderit shume per perkrahjen tuaj, me vjen mire qe ju e pelqeni punen tone.

Shume faleminderit edhe nje here per fjalet e bukura.

Keni pershendetje nga stafi i Laborator
Arlind, Ylli, Art

Hello, Can you recommend the best way to customize Xenon (eg panel header height) without future updates from you overwriting the changes that we make?

TIA!

Hi tdalzell

The best way to do this is to compile the less files, here are the steps:

1. Open ~/assets/less/xenon-less/variables.less
2. Edit these variables http://cl.ly/Z4ft (set your height)
3. Compile the LESS files list as described below:

bootstrap.less
xenon.less (compile only if you use)
xenon-core.less
xenon-forms.less
xenon-components.less

With output path to assets/css/ and use any Less compiler.

Whenever is new update, you repeat this process and you will not have any problem.


Arlind

Hello,

I tried to make a slider, but the slider don’t show up. I have devexpress installed, charts work but not slider.

Screenshot:http://prntscr.com/5jq5b7

Hi aomtte

Can you please open Inspect Element and go to Console to see what errors are generated in this page, then send me the screenshot of it, so I will be able to understand what is the problem.


Arlind

I forgot to add the slider resource in the app.js xD

Great to hear that you managed to fix it.


Arlind

I want to use slider, but if I want to set the values from controller, then the slider cannot be moved anymore.

Eg, testOptionsMin is set in controller with ”$scope.testOptionsMin = 10;” and html with following code:

div class=”slider” data-min=”{{testOptionsMin}}” data-max=”{{testOptionsMax}” data-value=”100”

Then this slider cannot be dragged anymore.

Can you please help to fix?

Hi tracyliang77

This form of defining slider is only supported with numbers, so variables like {{varname}} doesn’t work. You Can do this in other way, via JS:

jQuery("input.slider-input").slider({
range: true,
min: 1,
max: 100,
});

This way will work.


Arlind

Hi,

Is there a way, I can reduce the overall Font size and also the element heights (Dropdown, Text Field etc) so that I place more controls in a form page ?

Thanks

Hi vsrm

Sure you can do this, just open assets/less/bs-less/variables.less

Change variable @font-size-base to your preferred font size and compile files:

bootstrap.less xenon.less (compile only if you use) xenon-core.less xenon-forms.less xenon-components.less

With output path to assets/css/ and use any Less compiler.

It will affect the entire font size.


Arlind

Hi my friend, this admin template “sidebar menu” have bugs. please open sidebar and several click on menu and submenu and again click to close sidebar, menu and submenu will be open.

Thanks for reporting this, we will try to fix that :)

Ylli

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve ThemeForest.

Sure, take me to the survey