Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (90 sloc) 4.08 KB
<!DOCTYPE html>
<meta charset="utf-8">
<title>Angular collapsible block demo</title>
<script src="//"></script>
<!-- Optional: include ng-animate for some extra sugar -->
<script src=""></script>
<link href="//" rel="stylesheet" type="text/css" />
<link href="dist/ng-collapsible-block.css" rel="stylesheet" type="text/css" />
<!-- Optional: include font-awesome to display an icon next to the collapsible block title -->
<link rel="stylesheet" href="">
<!-- Just some body style to space things up -->
padding: 120px 60px;
/* So much gradient, check out -> */
background: -webkit-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* Chrome 10+, Saf5.1+ */
background: -moz-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* FF3.6+ */
background: -ms-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* IE10 */
background: -o-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* Opera 11.10+ */
background: linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* W3C */
font-weight: 300;
padding-top: 15px;
border-top: 1px solid #E6E6E6;
<body class="clearfix" ng-app="app" ng-controller="ctrl">
<header class="col-xs-12">
<h1>Angular collapsible block demo</h1>
<article class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<div class="form-group">
<label for="exampleInputName">Name</label>
<input type="text" class="form-control" id="exampleInputName" placeholder="Name">
<collapsible collapsible-title="{{title1}}" collapsed-icon="fa fa-chevron-down" expanded-icon="fa fa-chevron-up">
<div class="form-group">
<label for="exampleInputColor">Shoe color</label>
<input type="color" class="form-control" id="exampleInputColor" placeholder="Shoe color">
<p class="help-block">Some things don't need to be shown right away.</p>
<div class="form-group">
<label for="exampleInputEmail">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail" placeholder="Email">
<div class="form-group">
<label for="exampleInputPassword">Password</label>
<input type="password" class="form-control" id="exampleInputPassword" placeholder="Password">
<collapsible collapsible-title="{{title2}}" collapsed-icon="fa fa-chevron-down" expanded-icon="fa fa-chevron-up">
<section class="form-inline">
<div class="form-group">
<div class="input-group">
<div class="input-group-addon">$</div>
<input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount">
<div class="input-group-addon">.00</div>
<p class="help-block">Thanks for the help!</p>
<footer class="col-xs-12">
<a class="btn btn-primary" href=""><i class="fa fa-code-fork"></i> Fork on Github</a>
<a class="btn btn-default" href=""><i class="fa fa-bug"></i> Submit an issue</a>
<!-- Local JS -->
<script src="dist/ng-collapsible-block.js"></script>
.module('app', ['ngAnimate', 'dm.collapsibleBlock'])
.controller('ctrl', ['$scope', function($scope){
$scope.title1 = "Advanced input";
$scope.title2 = "Help charity!"
You can’t perform that action at this time.