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.

I am trying to use $cookies to determine if a user is logged in or not. I want the user to go to the login screen if not. Found a solution elsewhere in this forum, but… Whenever I try to use $cookies like this:

if($cookies["loggedIn"])
    {
        $urlRouterProvider.otherwise('/app/start-dashboard');
    }
    else
    {
        $urlRouterProvider.otherwise('/login');
    }

I get this error and everything stops:

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

Hope you can help me in this matter. I also tried $.cookie(“test”) but that didn’t work either.

Thanks in advance.

Hi Arlind, getting there but… When trying to do this:

if($cookies["loggedIn"])
        {
            $state.go("app.dashboard-variant-1");
        }
        else
        {
            $state.go('app.extra-notes');
        }

I get an error: Error: Could not resolve ‘app/extra-notes’ from state ’’

It might be due to the fact i don’t get this part, but what should be in the $state.go(””) in reference to the $stateProvider.

Hope you can help, and btw. Love the code :-)

I got it working with $.location() but not with $.state.go()? Not sure why. Is there an downfall with using that $.location vs. $.state.go?

Hi jmansa

Actually I was referring to the API documentation and there was stated as $state so I didn’t knew that $location works and $state not, so feel free to use if it works for you I believe it only activate states and doesn’t have any downfall at all.

Thanks for your patience


Arlind

Hi! Your theme is amazin! I bought it few days ago and its great.

Im new with Angularjs but I learn fast. I need to know if you have any small sample, for example, on how to get records from a mysql table using php and display it with a datatable.

I have some ideas of how to do that, but I still dont udnerstand how to link all the process at 100% (what do I need to add to the html file, to app.js, to directives.js, etc).

If you have any simple sample I will really appreciate it. Thanks Damian

Hi Damian

Thank you so much for your kind words we really appreciate them.

Here is how I think you can get the records from the database:

$.getJSON("http://url-to-your-file.php", function(response)
{
    var t = $('#example-table').DataTable();

    var items = response.items;

    $.each(function(index, item)
    {
        // Based on columns you have you set the values of columns
        t.row.add( [
            item.id,
            item.name,
            "edit",
            "delete",
            "and so on" 
        ] ).draw();
    });
});

The php should generate this kind of information:

$items = array(
    array('id' => 1, 'name' => "Arlind"),
    array('id' => 2, 'name' => "John"),
    array('id' => 3, 'name' => "Damian"),
    array('id' => 4, 'name' => "So on..."),
);

echo json_encode($items);

// This probably should be generated via Database.

I hope it will help you.


Arlind

I want to use the angularJS version of this theme for a mobile smartphone app. I need the top navigation bar fixed in the mobile version but i can’t get it working. On mobile devices the top bar (sidebar wich is on top) isn’t fixed so it scrolls. What’s the best way to get the mobile sidebar (wich is on top) fixed? (Just open the angular theme in a mobile smartphone browser)

Hi

By default the sidebar is not fixed in mobile devices and there is no option for this (we will add in the next version), to make it sticky you should apply this Custom CSS:

@media screen and (max-width: @screen-sm-min){
    .page-container .sidebar-menu {
        position: fixed;
    }

    .page-container .main-content {
        padding-top: 90px;
    }
}


Arlind

Hi

Using your code the top bar (sidebar) is fixed on mobile but the content area floats over the sidebar while scrolling. Another problem is that the menu doesn’t expand anymore. When will the new version be released?

Hi

I see that this needs more development so I will try to fix this and add as full feature in the next update.

Currently we don’t have any ETA for the update, but I suggest you to use the static menu that is not fixed to top.


Arlind

Hi Arlind,

Do you have some CSS for check boxes, and dropdown lists? I find some in your list but are under the native elements – shows up different in different browsers.

Santhosh

Hi Santhosh

There is default CSS from bootstrap used for drop downs and checkboxes however the styled checkboxes and select elements can be found here:

http://themes.laborator.co/xenon/forms/advanced/

If possible provide a screenshot of the elements that are being styled differently.


Arlind

Hello Arlind – Fan of your work!! I have obviously been tracking the theme everyday for an update. I have been working with the theme for a while and picked up numerous bugs which almost all have been reported. When are you going to release a patch up? I saw mention that you were working on another theme … Thanks Zane Gers (User Account – zgers)

Hi Zane

Thank you so much for your kind words, I am happy to hear them.

We have addressed all the bugs (see the list http://cl.ly/ZfVl ) and when we release new theme we will return to Xenon and fix the reported issues. So the after the release of our new theme which we don’t have an exact ETA the Xenon update will be available in a week or two after the new theme.

Thank you for your collaboration buddy.


Arlind

Hello,

I am planning to buy a template before buying it I would like to know if this product – http://themes.laborator.co/xenon/angular/#/app/dashboard-variant-1 is compatible with ASP.NET MVC WEB API and would I be getting a documentation to integrate the same(angular js and ASP.NET MVC WEBAPI in IIS) before/after buying it.

Hi

Thanks for considering our theme.

Unfortunately this theme doesn’t contain documentation for integrating in other platformes, it comes in basic AngularJS and whatever you are familiar you can integrate it if you already know AngularJS good.

A lot of users already have managed to integrate in their favorite frameworks.


Arlind

Hello.

How can I use $locationProvider.html5Mode(true); on angular-ui-router?

When I added this code, infinite load loop on web browser. :(

Hi

After googling your problem I saw this related article:

https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode

I am not sure what exactly $locationProvider.html5Mode(true); does because I haven’t used this declaration!


Arlind

Hello,

I’d like to implement a sort feature for the responsive table without using DataTables. What’s the best way to highlight the thead cell when I have my mouse over it? Is these a built in function for that or do I have to customize the CSS file?

This is what I’d like to add the up/down caret to if the column is sorted. I’d also like to have it highlight with mouse over. Suggestions on best practice approach would be highly appreciated!

http://snag.gy/X7168.jpg

Hi

I understand what are you trying to do, so if you want to achieve this without DataTables then of course are other more basic alternatives to this, here are the libraries that will do what you want:

1. http://www.kryogenix.org/code/browser/sorttable/

2. http://webfx.eae.net/dhtml/sortabletable/sortabletable.html

3. http://www.listjs.com/

I hope you will manage to implement any of them.


Arlind

Hi,

I want to dynamically add a datatable row containing a slider. The code below adds a slider but it is non functional. How should I do this?
/* var table */
table.dataTable().api().row.add(
['<div class="slider" width="200px">']
)
</div>

Hi

After you add table row then you must re-call slider function to initalize the slider element:

table.dataTable().api().row.add( [
    counter +'.1',
    counter +'.2',
    counter +'.3',
    counter +'.4',
    counter +'.5'
] ).draw();

$(".slider").slider({
    ...
});

This will initalize the slider.


Arlind

Thank you. That worked well.

Glad to hear that :)

GREAT work but I saw this: In LivePreview Tocify looks broken when scroll-down. Take a look.

Hi

Thanks for reporting this, we will take a look and fix it.

Have a great day.


Arlind

Any tips on getting this working with a .Net Web API backend? I’ve been trying to get it to work but no luck so far. Could someone walk me through how to get it up and running from starting a new “ASP.NET Web Application -> Web API” Project from Visual Studio’s template?

It really looks like a great theme and I’d love to get it up and running. I do need to run it from a cshtml page to integrate with our login verification etc.

Hi there, 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.

HI,

I am trying to do a horizontal split frame so that the top and the bottom sections can be scrolled independently. Do you have an built in UI-element for that I can readily use?

Thanks Santhosh

Hi Santhosh, we are afraid, but aren’t sure if we understand you well. :S Do you have any screenshot of what exactly do you want to achieve with that?

We will see if we can help you.

Ylli

I’m having trouble in AngularJS with the “spinner” from the forms->advanced plugins. I set the ng-model on the input, but the value isn’t correctly reflected in the $scope. It’s changing visually though.

What am I doing wrong?

Can you provide an angularjs example of how to wire the DOM to the $scope?

Thanks, Greg

Hi Greg

The Spinner included in Angular version is implemented from raw jQuery.

I have no clues how to apply this value when spinner value is change to the $scope in your case from ng-model.

For this I need to find a solution and it would be great if you can think of an idea how to implement it.

Thanks


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! – nicholas_t

Hi nicholas_t

Firstly thank you for your kind words and purchasing Xenon.

Xenon style is developed with LESS preprocessor of CSS which makes it easier to style and change theme style. More information about how to adapt in this environment is located here:

http://documentation.laborator.co/xenon/#3.Styling

However if you are trying to do it in CSS directly then you need to write full path for every CSS rule, for example select the element via Element Inspector http://cl.ly/ZZ8D and copy the CSS path and place it in custom.css then apply your own style. Note that sometimes you may need to add !important for some rules.

I hope this will help you. In my opinion if you learn LESS, it will make your life easier when handling with CSS.


Arlind

Hello, members want to create a custom profile page. How can I link to the member’s profile. Member ID = 13.

Please help.

e.g.
<a href="#/app/profile/1">
</a><a href="#/app/profile" member="">
</a>

Hi

The best way to edit profiles and URL friendly is this:


<br />
Arlind
<br />
<br />
<a href="http://documentation.laborator.co/" target="_blank"><img src="http://laborator.co/images/xenon/docs.png" target="_blank" /></a><a href="http://themeforest.net/user/Laborator/follow"><img src="http://laborator.co/images/xenon/envato.png" /></a><a href="https://www.facebook.com/laboratorcreative" target="_blank"><img src="http://laborator.co/images/xenon/like.png" /></a>

Hello, members want to create a custom profile page. How can I link to the member’s profile. Member ID = 13.

Please help.

e.g.
<a href="#/app/profile/1">
</a><a href="#/app/profile" member="">
</a>

Hi, i have a problem: when i use Select2 Elements and one Select2 is focused(active) the css don’t set border to this; i need to set border green on every Select2 element that is active.

i checked the css and this part is the problem; what can i do? help me please:

html .select2-container .select2-choice { background: #fff!important; border-color: #e4e4e4!important; }

Hi there, 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’m trying to use the “Show and hide with effects” on a <select> but the problem is that when I use the jquery function from your example with my ng-options, the jquery seem to clear the data of the select. Because the select get empty when I launch the jquery to make the show&hide effect.

<select ng-model="selectedItem" ng-options="offer as offer for offer in offers" id="sboxit-4"> <option value="">Choisissez votre offre</option> </select> <script type="text/javascript"> jQuery(document).ready(function($) { $("#sboxit-4").selectBoxIt({ showEffect: 'fadeIn', hideEffect: 'fadeOut' }); }); </script>

Hi aomtte

Can you please try this way:

<select ng-model="selectedItem" ng-options="offer as offer for offer in offers" id="sboxit-4">
    <option value="">Choisissez votre offre</option>
</select>
<script type="text/javascript">
    jQuery(document).ready(function($)
    {
        setTimeout(function()
        {
            $("#sboxit-4").selectBoxIt({
                showEffect: 'fadeIn',
                hideEffect: 'fadeOut'
            });
        }, 100);
    });
</script>

I know it is not a good practice for angular but it will work. However you can assign a Controller and call it from there:

// Script
angular.controller('SomeCtrl', function()
{
$("#sboxit-4").selectBoxIt({
    showEffect: 'fadeIn',
    hideEffect: 'fadeOut'
});
});

// Markup
<select ng-controller="SomeCtrl" ng-model="selectedItem" ng-options="offer as offer for offer in offers" id="sboxit-4">
    <option value="">Choisissez votre offre</option>
</select>

I hope this will help you.


Arlind

Hi,

Thank’s it worked :) !

I’m glad to hear that :)

Arlind

Have just purchased this item. Congratulations on the GUI. My goal is to use the html with php and the first issue is the USER MANAGEMENT system. Is there any recommended PHP user system /script/lib to use with Xeon? This will be very helpful to avoid time consuming adaptations. The same would apply to CHAT and Mailbox, if those items where successfully implemented with PHP in Xeon.

Hi cunha1973

Thanks for your kind comments, we really do appreciate them.

The Xenon can be implemented in any framework, it fits to any of them. So to decide which one, I suggest you to use the framework you know better and worked for a long time and which supports the above requirements for Chat and Mailbox.

However if I would use the Xenon theme my preferred framework is Laravel http://laravel.com/ which is great PHP framework for any kind of project.

I hope my answer makes sense to you. Cheers


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