Ext JS - Learning Center

Extension:ColorField

From Learn About the Ext JavaScript Library

Jump to: navigation, search
Summary: A form field for colors, with color menu
Author: bendy,Nullity,stever
Published: 1 October 2007
Version: 1.0.0
Ext Version: 1.1
License:
Demo Link: No Demo
Forum Post: View Post

Contents

Description

ColorField is a form field that allows you to choose a color from the menu or enter it manually. It validates that it starts with a # and that it is either 4 or 7 characters long. You can choose a default color by setting the field's emptyText property. Selected colors are displayed in the trigger.

ToDo

  • Improve validation.
  • Add optional alpha channel support.
  • Optionally use color wheel from Extension:Yui_Color_Picker.

Changelog

Screenshot

Image:ColorField.png

  • This page was last modified 23:03, 2 October 2007.
  • This page has been accessed 2,883 times.