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.

Please How can I change the colours without LESS. Thank you

You can just select the element where you want to change the color with the Inspect Element, and then write then in a CSS which will overwrite the main css.

Kind Regards,
Art

Hej,

I have a problem with “Bootstrap WYSIHMTL5”. Every time when i click “Normal Text” button[changing the style of the text] or “Black”[changing the color] i get redirected to the homepage. This error is recorded in all browsers Firefox [ v35.0 ], Chrome [ v40.0 ] and Safari [ v8.0.2 ] all on Mac X Yosemite.

NOTE: this error is reported using the angular theme not the simple .html Link: http://themes.laborator.co/xenon/angular/#/app/forms-wysiwyg

Hi Purplecowaps

We are aware of this issue, and we have decided to change * Bootstrap WYSIHMTL5* to the latest version because the one used in Xenon is unstable and has issues also in HTML version too.

Thanks for reporting this.


Arlind

We’ve bought your theme, and it looks good. However, I want to change the colors of a lot of different stuff, but cannot for the life of me find out where certain things are being styled. For example, I changed the sidebar to be white with custom css, but would like to find out what is responsible for the menu items being grey, and white when active and on hover (since this makes them invisible with a white sidebar).

This, and in general where the different elements that are used get styled would be lovely to know. Thanks in advance!

Hi nicholas_t , can you please post with the account you bought the theme, this way we can verify that you’re a real customer as we do not offer support to users who doesn’t have “Purchased” badge.

Hello, I like your theme very much, but i need to know before I buy it, if the theme work like an Intranet webpage, with tasks, or team management and if I can to add security policy to every user, to set up his rights ? Best regards

Hi erdeib

Xenon is available in HTML and AngularJS version, so if you want to use it you must include in your framework, because as plain HTML it will not have the full functionality (database and server side processing).

Thank you


Arlind

Hello again! Please can you provide me fix for sticky footer (I wrote about this bug early) before the next update will be released? And can you invite me on Bitbucket to see changelog? My account there is the same, akasangre.

Thanks in advance

Hi

I have tried some variants how to fix this but I couldn’t find the solution for now, so I will try to discover more how can I fix this and in the next update it will be fixed I hope.


Arlind

Ok, thanks. And one more question: I found custom event “xenon.resize”, which is used in some parts of javascript files. But I can’t find this event declaration, can you describe, what is this? I telling about plain html version of theme.

Hi

This event is initialized here:

~/assets/js/resizeable.js

The difference between $(window).on('resize') and $(window).on('xenon.resize'); is that when the window resize drag is finished it is called once, while the first one it will be called each pixel when the window size is changed. So this will take less memory, and here in this function you can use pre defined true/false functions such:

// Large Screen Specific Script
if(is('largescreen'))
{
}

// Tablet or larger screen
if(ismdxl())
{
}

// Tablet Screen Specific Script
if(is('tabletscreen'))
{
}

// Tablet device screen
if(is('tabletscreen'))
{
}

// Tablet Screen Specific Script
if(isxs())
{
}


Arlind

Hello,

My website work on Mozilla Firefox, Androids and Windows Phone.

But when I try to go on my website with Google Chrome the page keep loading, look: http://prntscr.com/5xr6um

The only warning in the console that I get is this: “Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check http://xhr.spec.whatwg.org/."

Can you help me :) ?

Thank’s you.

Hi aomtte

I am sorry but I really have no idea in this case. It is something that I have never tried and have no clues about how can I solve this, I am sorry :(


Arlind

Hello, thank’s for the answer.

Let me link you to my stackoverflow question where I give some example of my code etc.. And I give a better explain of my problem.

Link: http://stackoverflow.com/questions/28185798/angularjs-with-my-php-api-factory-who-get-values-asyncfalse-need-alternative

( You can answer here if you have some idea )

Hi aomtte

I saw your post and tried to figure out whats the problem there, but I didn’t had any solution to it, hopefully the community will help you in this case. Really sorry about it.


Arlind

Google Maps not working. When I select the Google maps or Advanced from the menu there is a JS error in ocLazyLoad.min.js

The vector maps work ok – what am I doing wrong?

Hi g6gang

I now realized that in this page the resource library for google maps is not found, see the error: http://cl.ly/ZWGp

So in app.js replace this URL

// line 836
'googleMapsLoader': appHelper.assetPath('app/js/angular-google-maps/load-google-maps.js');

// replace with your url:
'googleMapsLoader': 'http://full-url.to/app/js/angular-google-maps/load-google-maps.js'

This way when the resource library is loaded then you will not have any issue importing google maps.


Arlind

Looks like you have to do more then that. I am not clear what the URL you provided, but I am planning on just attempting to follow the instructions here:

http://angular-ui.github.io/angular-google-maps/#!/use

Hi

This can be your solution too, because in the time I have developed Angular version of Xenon I was unable to find a plugin like this to implement for Google maps.


Arlind

Is there a way to set minimum and maximum on Spinner (in Advanced Form) ?

Hi inmyth

Sure you can do this:

<div class="input-group spinner" data-step="2" data-min="5" data-max="15">
    <span class="input-group-btn">
        <button class="btn btn-gray" data-type="decrement">-</button>
    </span>
    <input type="text" class="form-control text-center" readonly="1" value="7" />
    <span class="input-group-btn">
        <button class="btn btn-gray" data-type="increment">+</button>
    </span>
</div>

Note that data-min and data-max set the boundaries of maximum or minimum input number.


Arlind

I tried only data-min because I just need bottom limit. It didn’t work. But it looks both data-min and data-max have to be set so I am using data-max=”9999999” to make it work.

Hi again

Ah really? I need to fix this for the next update. Great that you found a way to solve it.


Arlind

I using one of your modals and trying to attach an ng-click to a button but the ng-click does not seem to be recognized.

Also how to get information back from modal? Can you share more info where modal support is coming from? I am looking at other modal plugin’s like https://github.com/m-e-conroy/angular-dialog-service

So it looks like modals comes from angulr-UI directives: http://angular-ui.github.io/bootstrap/ – you may want to put some more info like this on your modals documentation page. I wasted lots of time trying to see where this is coming from. From the link above I was able to see how this actually works.

Hi

The modals I have implemented in Xenon Angular is derived from Bootstrap UI from Angular $modal

Here is an example how they work:

$rootScope.currentModal = $modal.open({
    templateUrl: 'modal-example',
    backdrop: true
});

<script type="text/ng-template" id="modal-example">
    <div class="modal-header">
        <button type="button" class="close" ng-click="currentModal.close();" aria-hidden="true">×</button>
        <h4 class="modal-title">Custo Modal</h4>
    </div>

    <div class="modal-body">
        Hello world
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-white" ng-click="currentModal.close();">Close</button>
        <button type="button" class="btn btn-info" ng-click="currentModal.dismiss();">Save changes</button>
    </div>
</script>

I hope you will be able to understand and get it to work for you.


Arlind

Uh, I now saw your second topic and didn’t realize that you managed to fix it.

I am sorry about the missing documentation, we will provide the links to the external resources used in Xenon that will guide users to the library documentation.


Arlind

Hello, Just wondering Is that possible, remove events on calendar site? all I see is add new events. Also if I want to make same event with same color (like copy and paste with every week), what should I do?( If there is those function or etc)

so there is no function to remove on site? right?only it can add and when u wanna remove u have to remove lines from source code.

and it can add events(with same color and same name) only on source code to copy and paste and make other new event

Sure you can remove events in programmatical way, this describes how to do it:

http://fullcalendar.io/docs/event_data/removeEvents/

For full handling of this this plugin I suggest you to refer to the Full Calendar documentation for custom advanced operations with calendar:

http://fullcalendar.io/docs/

When I’ve implemented the calendar, I only styled it, and learned how to add new event, and how to initialize it.


Arlind

Hello,

I tried to ng-bind-html a value, but my value don’t show up ( i’m using the angularjs version )

Can you help me ?

Hi aomtte

I’ve also had issues with this, so after importing Strict Contextual Escaping ($sce) I managed to solve this:

// Direct Example:
$scope.htmlField = $sce.trustAsHtml("my custom html here");

// More detailed
var ngBindHtmlDirective = ['$sce', function($sce) {
  return function(scope, element, attr) {
    $scope.htmlField = $sce.trustAsHtml("my custom html here");
  };
}];

I hope this will help you.


Arlind

Hello Arlind,

Thank’s for the support, it’s working !

Wohoo, glad to hear that :)

Arlind

Hi,

I am trying to set ‘data-to’ value for ‘xe-counter’ from a controller but it is not working. The value becomes ’—’. Is there any solution for this issue ?

Thanks,

Hi Iscaler

If you are defining values via Angular then the counter will fail to load, so we are working to get this fixed in the next update so the xe-counter will accept variables from angular too!


Arlind

There is a css bug, tocify in chrome, left menu goes behind text.

And in gallery, last draggable item is impossible to move.

Hi sandrodz, here is the code if you want to fix that:

.tocify.full-width {
     width: auto !important;
} 

As for gallery, wi will check that and release a new update when is ready.

Thanks for reporting the bugs. :)

Ylli

xecounter angulra directive does not work when it is bound to a data-model and the model is loaded from a Factory (using .success). My data comes from a web server and the data-to I have bound to a ng-model – but it will only show ’—’. How can I change the directive to adapt when the data-to model changes or is delayed

in my partial:
<div class=" xe-progress-counter xe-progress-counter-info" xe-counter="" data-count=".num" data-from="0" data-to="{{myobj.issued}}" data-suffix="" data-duration="4">

                                    <div class="xe-background">
                                        <i class="linecons-user" />
                                    </div>

                                    <div class="xe-upper">
                                        <div class="xe-icon">
                                            <i class="linecons-user" />
                                        </div>
                                        <div class="xe-label">
                                            <span>Issued</span>
                                            <strong class="num">0</strong>
                                        </div>
                                    </div>

My controller:
<pre>
MyFactory.getAll(true).success(function(data){
        $scope.myobj=data.results;
    });
</pre></div>

Hi

If you are getting these data via AJAX then use compile to display the directive properly, here is an example of use:

/**
 * A weird directive that takes a space-seprated list of property names,
 * and prints them out as JSON.
 */
app.controller('SomeCtrl', ['$compile', function($compile) {
    // use the $compile(htmlData); to apply the directive rules
}]);


Arlind

Hi, I started using the Xenon today. Just open in browser angular versions and this error is showing in console:

Error: [$compile:tplrt] http://errors.angularjs.org/1.2.26/$compile/tplrt?p0=sidebarProfile&p1=app%2Ftpls%2Flayout%2Fsidebar-profile.html

I didnt change nothing just I download files in themeforest.net and run.

I searched here in comments for “[$compile:tplrt]” and another 4 users has the same error.

Could you please let me know if you have any solution?

Hi

I have added you to the repository.


Arlind

Hi, my access was removed. And I found the solution, is just REMOVE blank line and comment at the beginning of file “sidebar-profile.html”.

Glad to hear that :)

Kind Regards,
Art

I just downloaded and tried running the index.html file in the angular folder (withn Apache on my Mac using Chrome and got the following error:

 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.26/$injector/modulerr?p0=xenon-app&p1=Error…20(http%3A%2F%2Flocalhost%2Fapp%2Fjs%2Fangular%2Fangular.min.js%3A18%3A170)

The page never loads. What am I doing wrong?

Ok I figured it out – When I unzipped the package it made many files Read only. So I had to change all permissions

chmod -R +a “Everyone allow read” /path/to/package

Hi g6gang

I am glad that you have managed to solve this issue, its interesting why this happens sometimes. However I will keep this as a fix suggestion for other users too.

Cheers


Arlind

I was unable to locate an answer in the comments so I apologize if you’ve already answered this, but when do you expect to have the next release?

Hi esheri3, we continuously update all items with new neat features and bug fixes, but currently we are preparing to release a new theme, but after that we will update Xenon :)

Ylli

When will the new theme be released? Admin theme? Leveraging similar chart components as Xenon? Exciting.

Hi esheri3, our next theme will be for Creatives, here is one sneak peak screenshot

.

We will do a new Admin template on second quarter of this year, so stay tuned :)

Ylli

Hi,

i just bought the Theme and i wanna know is there is any free Chart plugin that is compatible with the theme? since it doesnt come with the one in the demo…

Thanks

Hi Mrtruko, i finded this link with a lot of js charts, just click the link.

Ylli

Hi,

I am trying to write an event on selection change of your styled Checkbox. But the event is not getting fired. Please help. <input ng-model="Confirmed" ng-change="loadEmployees(this)" type="checkbox" class="cbr pull-left" />

Thanks

Hi vsrm

I am not sure why this is not working, after viewing this article: https://docs.angularjs.org/api/ng/directive/ngChange

You are doing the right steps. Just make sure you have assigned loadEmployees function to $scope.loadEmployees in controller.


Arlind

Could you say how to find the id of the element dragged? I managed to call angular controller . But, here I couldnot get the id of the dragged element. I tried a lot for index and id fetching. But shows -1 and undefined. See for the possibilities in dragstop of nestable.js
dragStop: function(e) {

            //alert(this);
            var myIndex = $(this).index();
            alert(myIndex);
             //var param =$(ui.dragStop).attr("id");
              var id = $(this).attr("id");
             alert(id);
            if(myIndex==-1){

            angular.element('#HomeCtrl').scope().showChart1(2);
            angular.element('#HomeCtrl').scope().$apply();
            //    alert('success');
            }
            //$(this).text('I am #' + myIndex);
            // fix for zepto.js
            //this.placeEl.replaceWith(this.dragEl.children(this.options.itemNodeName + ':first').detach());
            var el = this.dragEl.children(this.options.itemNodeName).first();
            el[0].parentNode.removeChild(el[0]);
            this.placeEl.replaceWith(el);
            this.dragEl.remove();

            if (this.tmpDragOnSiblings[0]!=el[0].previousSibling || this.tmpDragOnSiblings[0]!=el[0].previousSibling) {

                this.element.trigger('nestable-change',[el, this.hasNewRoot ? "added":"moved"]);

                if (this.hasNewRoot) {
                    this.dragRootEl.trigger('nestable-change', [el, "removed"]);
                }
            }
            this.reset();

            html.removeClass(this.options.movingClass);
        }

Hi vembu

I am not sure, but try if this is working:

dragStop: function(e) {
    var $el = $(this);
    var id = $el.attr('id');

    // The rest of code here... 
    // Try to access always $el for element info
}


Arlind

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