Giter Site home page Giter Site logo

resizabletextarea's Introduction

resizableTextarea

Resizable (+ as in webkit) textarea for MooTools

Cross Browser: IE6+, FF3+, Safari3+, Opera9+, Chrome

Screenshot

How to use

HTML
-----------
`<div class="textarea">`
	`<textarea cols="40" rows="5"></textarea>`
`</div>`

CSS
-----------
.textarea {
	padding: 5px 5px 16px;
	margin: 0 0 11px;
	border: 1px solid #808080;
	display: inline-block;
	position: relative;
}
.textarea textarea {
	margin: 0;
	padding: 0;
	float: left;
	width: 400px;
	height: 100px;
	border: 0;
	font: 12px/15px Arial, Helvetica, sans-serif;
	resize: none;
	overflow: auto;
	background: none;
}
.textarea .handler {
	position: absolute;
	bottom: 3px;
	right: 3px;
	width: 11px;
	height: 11px;
	background: url(../images/ico-handler.gif) no-repeat;
	overflow: hidden;
	cursor: se-resize;
}

JavaScript:
-----------
window.addEvent("domready", function() {
    var textarea = new resizableTextarea(element [, options]);
});

Arguments:
----------
	- element [element] - reference to the elements object
	- options [object]
		- handler [string] - class or node for handler. Default ".handler"
		- onResizeClass [string] - class for textarea during resizing. Default "resize"
		- modifiers {x:[boolean], y:[boolean] - horizontal, vertical or both
		- size {x:[integer, integer], y:[integer, integer]} - max, min width and height for textarea
		- onStart [function] - callback before resizing
		- onEnd [function] - callback after resizing
		- onResize [function] - callback during resizing

Screenshots

Screenshot

resizabletextarea's People

Stargazers

Korney Czukowski avatar

Watchers

Sergii Kashcheiev avatar

resizabletextarea's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.