Skip to content

A resizabe container, the container could be divided into several resizable divs.

Notifications You must be signed in to change notification settings

Newcomer520/resizable-div-frame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Angular Directive: resizable-div-frame

A resizabe container, the container could be divided into several resizable divs.

Example

see the example (I use Require.js to build this example.)

Dependencies

Angular, Jquery and the custom style(custom.css)

I didn't remove the dependency of jquery at this moment. Maybe I will do it later.

Usage

###Javascript

	var myApp = angular.module('my-app', ['ng-sdiv']);
	angular.bootstrap(document.body, ['my-app']);

###Html Markup Set direction-way to the direction of the container.
the simple resizable sdivs

				<sdiv-container direction-way="horizontal" style="height:150px;width: 97%">
					<sdiv style="width:50%">
						<div>spdiv1</div>
						<div>spdiv1-2</div>
					</sdiv>
					<sdiv style="width:20%;">sdiv2sdiv2sdiv2sdiv2sdiv2sdiv2sdiv2s<br>div2sdiv2sdiv2sdiv2sdiv2sdiv2s<br>div2sdiv2sdiv2sdiv2sdiv2</sdiv>
					<sdiv style="width:10%">sdiv3</sdiv>
					<sdiv style="width:20%">sdiv5</sdiv>
				</sdiv-container>	

Nested sdivs

		<sdiv-container direction-way="horizontal" style="height:300px;width:1000px;margin-left:10px;">
			<sdiv style="width:50%">
				<div>spdiv1</div>
				<div>spdiv1-2</div>
			</sdiv>
			<sdiv style="width:20%;">sdiv2sdiv2s</sdiv>
			<sdiv style="width:10%">sdiv3</sdiv>
			<sdiv style="width:20%;">
				<sdiv-container direction-way="vertical" style="height:100%;width:100%;">
					<sdiv style="height:50%">
						<div>vertical 01</div>
						<div>vertical 02</div>
					</sdiv>
					<sdiv style="height:30%;">vertical 03</sdiv>
					<sdiv style="height:19%">vertical 05</sdiv>
				</sdiv-container>
			</sdiv>
		</sdiv-container>

About

A resizabe container, the container could be divided into several resizable divs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published