-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
type()
Type : public method
Support : 0.6
Return : String
- Color문자열의 Color Type을 반환.
- 지원하는 타입, "hex", "rgb", "rgba", "keyword", "hsl", "hsla"
지원하는 칼라 타입이 아닐 경우 에러메세지를 표시하게 설정할 수 있다.
https://www.w3.org/wiki/CSS/Properties/color/keywords
Methods
-
type( color, errorMsg ) : Stringver 0.6~
-
color : StringColor문자열 ("hex", "rgb", "rgba", "keyword", "hsl", "hsla")
-
errorMsg : String해당 타입이 없을때 발생시킬 에러 메세지. 설정하지 않으면 해당 타입이 없을때 undefined반환
-
Example
var type = $B.color.type( '#FFFFFF' ); //hex
var type = $B.color.type( 'rgb(255, 255, 255)' ); //rgb