JUI(Simple UI & Chart Component)

util.base

Files

jui 에서 공통적으로 사용하는 유틸리티 함수 모음

var _ = jui.include("util.base");

console.log(_.browser.webkit);
Defined By

Properties

util.base
view source
: Object
check browser agent ...

check browser agent

  • webkit : Boolean

    Webkit 브라우저 체크

  • mozilla : Boolean

    Mozilla 브라우저 체크

  • msie : Boolean

    IE 브라우저 체크

util.base
view source
: Boolean

check touch device

check touch device

Defined By

Methods

util.base
view source
( input ) : String
Base64 디코딩 ...

Base64 디코딩

Parameters

  • input : Object

Returns

  • String
util.base
view source
( input ) : String
Base64 인코딩 ...

Base64 인코딩

Parameters

  • input : Object

Returns

  • String
util.base
view source
( arr, len ) : Array
split array by length ...

split array by length

Parameters

  • arr : Array
  • len : Number

Returns

  • Array
util.base
view source
( obj ) : Array
implements object clone ...

implements object clone

Parameters

  • obj : Array/Object

    복사할 객체

Returns

  • Array
util.base
view source
( key ) : String
유니크 아이디 생성 ...

유니크 아이디 생성

Parameters

  • key : String

    prefix string

Returns

  • String

    생성된 아이디 문자열

util.base
view source
( csv ) : String
csv 다운로드 링크로 변환 ...

csv 다운로드 링크로 변환

Parameters

  • csv : String

Returns

  • String
util.base
view source
( keys, csv, csvNumber ) : Array
...

Parameters

  • keys : Array
  • csv : String
  • csvNumber : Number

Returns

  • Array
util.base
view source
( keys, dataList, dataSize ) : String
data 를 csv 로 변환한다. ...

data 를 csv 로 변환한다.

Parameters

  • keys : Array
  • dataList : Array
  • dataSize : Number

Returns

  • String

    변환된 csv 문자열

util.base
view source
( options ) : String
...

Parameters

  • options : Object

Returns

  • String
util.base
view source
( date, format, utc ) : string
implements date format function yyyy : 4 digits year yy : 2 digits year y : 1 digit year ...

implements date format function

yyyy : 4 digits year yy : 2 digits year y : 1 digit year

Parameters

  • date : Date
  • format : String

    date format string

  • utc : Object

Returns

  • string
util.base
view source
( obj, emit ) : *
implements object deep clone ...

implements object deep clone

Parameters

  • obj : Object
  • emit : Object

Returns

  • *
util.base
view source
( string, searchString ) : Integer
Check that it matches the end of a string search string. ...

Check that it matches the end of a string search string.

Parameters

  • string : String
  • searchString : String

Returns

  • Integer

    position

util.base
view source
( origin, add, skip ) : Object
implements object extend ...

implements object extend

Parameters

  • origin : Object|Function
  • add : Object|Function
  • skip : Boolean

Returns

  • Object
util.base
view source
( file, callback )
file 에서 csv 컨텐츠 로드 ...

file 에서 csv 컨텐츠 로드

Parameters

  • file : File
  • callback : Function
util.base
view source
( fields, csvFields ) : Array
csv 에서 필드 얻어오기 ...

csv 에서 필드 얻어오기

Parameters

  • fields : Array
  • csvFields : Array

Returns

  • Array
util.base
view source
( ) : IndexParser
IndexParser 객체 생성 ...

IndexParser 객체 생성

Returns

  • IndexParser
util.base
view source
( ctor, superCtor )
프로토타입 기반의 상속 제공 ...

프로토타입 기반의 상속 제공

Parameters

  • ctor : Function

    base Class

  • superCtor : Function

    super Class

util.base
view source
( total, [context] ) : Function
최적화된 루프 생성 (5단계로 나눔) ...

최적화된 루프 생성 (5단계로 나눔)

Parameters

  • total : Number
  • context : Object (optional)

    Defaults to: null

Returns

  • Function

    최적화된 루프 콜백 (index, groupIndex 2가지 파라미터를 받는다.)

util.base
view source
( data, [context] ) : Function
배열을 사용해서 최적화된 루프로 생성한다. ...

배열을 사용해서 최적화된 루프로 생성한다.

Parameters

  • data : Array

    루프로 생성될 배열

  • context : Object (optional)

    Defaults to: null

Returns

  • Function

    최적화된 루프 콜백 (data, index, groupIndex 3가지 파라미터를 받는다.)

util.base
view source
( data, keyField ) : Object
배열의 키 기반 인덱스를 생성한다. ...

배열의 키 기반 인덱스를 생성한다.

개별 값 별로 멀티 인덱스를 생성한다.

Parameters

  • data : Array
  • keyField : String

Returns

  • Object

    생성된 인덱스

util.base
view source
( px ) : Number
convert px to integer ...

convert px to integer

Parameters

  • px : String or Number

Returns

  • Number
util.base
view source
( callback, ms )
add event in window resize event ...

add event in window resize event

Parameters

  • callback : Function
  • ms : Number

    delay time

util.base
view source
( name, callback )
caculate callback runtime ...

caculate callback runtime

Parameters

  • name : String
  • callback : Function
util.base
view source
( array ) : QuickSort
use QuickSort ...

use QuickSort

Parameters

  • array : Array

Returns

util.base
view source
( string, searchString ) : Integer
Check that it matches the starting string search string. ...

Check that it matches the starting string search string.

Parameters

  • string : String
  • searchString : String

Returns

  • Integer

    position

util.base
view source
( method, args ) : Mixed
call parent method ...

call parent method

Parameters

  • method : String

    parent method name

  • args : Array

Returns

  • Mixed
util.base
view source
( xml ) : String
xml 문자열로 svg datauri 생성 ...

xml 문자열로 svg datauri 생성

Parameters

  • xml : String

Returns

  • String

    변환된 data uri 링크

util.base
view source
( html, obj )
parsing template string ...

parsing template string

Parameters

  • html : Object
  • obj : Object
util.base
view source
( total, context ) : Function
implement async loop without blocking ui ...

implement async loop without blocking ui

Parameters

  • total : Object
  • context : Object

Returns

  • Function
util.base
view source
( t, v ) : Boolean
check data type ...

check data type

Parameters

  • t : String

    type string

  • v : Object

    value object

Returns

  • Boolean