This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arrPedigree = array( | |
array( | |
'name' => 'Parent', | |
'children' => array( | |
array( | |
'name' => 'Child 1', | |
'children' => array( | |
array( | |
'name' => 'Sub Child 11', | |
'children' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="App"> | |
<head> | |
<meta name="description" content="AngularJS + jQuery UI Drag-n-Drop" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.0.1/angular.min.js"></script> | |
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> | |
<meta charset=utf-8 /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Invoking the toolbar --> | |
<div id="toolbarBtn" class="btn-toolbar"><i class="fa fa-cog"></i></div> | |
<!-- Actual toolbar --> | |
<div id="toolbar" class="hidden"> | |
<a href="#"><i class="fa fa-plane"></i></a> | |
<a href="#"><i class="fa fa-car"></i></a> | |
<a href="#"><i class="fa fa-bicycle"></i></a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#toolbarBtn').toolbar({ | |
content: '#toolbar', | |
position: 'top' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Actual toolbar --> | |
<div id="toolbar-boys-options" class="hidden"> | |
<a href="#"><i class="fa fa-plane"></i></a> | |
<a href="#"><i class="fa fa-car"></i></a> | |
<a href="#"><i class="fa fa-bicycle"></i></a> | |
</div> | |
<!-- Invoking the toolbar --> | |
<div appToolbarBoys class="btn-toolbar"><i class="fa fa-cog"></i></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// boys.directive.ts | |
import { Directive, ElementRef } from '@angular/core'; | |
declare const $: any; | |
@Directive({ | |
selector: '[appToolbarBoys]' | |
}) | |
export class BoysDirective { | |
constructor(private el: ElementRef) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<app-toolbar-men> | |
<div id="toolbar-men-options" class="hidden"> | |
<a href="#"><i class="fa fa-heart"></i></a> | |
<a href="#"><i class="fa fa-heart-o"></i></a> | |
<a href="#"><i class="fa fa-heartbeat"></i></a> | |
</div> | |
</app-toolbar-men> |
OlderNewer