$colacola.AbstractButtoncola.AbstractCheckboxcola.AbstractContainercola.AbstractDropdowncola.AbstractEditorcola.AbstractInputcola.AbstractItemGroupcola.AbstractListcola.AbstractMenuItemcola.AbstractSlotListcola.AjaxValidatorcola.AsyncValidatorcola.Avatarcola.Breadcrumbcola.Buttoncola.ButtonGroupcola.Calendarcola.CardBookcola.Carouselcola.CascadeBindcola.Checkboxcola.ControlMenuItemcola.Cornercola.CustomDropdowncola.CustomValidatorcola.DataTypecola.DatePickercola.DateTimePickercola.Dialogcola.Dividercola.Dropdowncola.DropdownMenuItemcola.Elementcola.EmailValidatorcola.Entitycola.EntityDataTypecola.EntityListcola.FieldSetcola.GroupBoxcola.HeaderMenuItemcola.IFramecola.Imagecola.Inputcola.ItemsViewcola.Labelcola.Layercola.LengthValidatorcola.Linkcola.ListViewcola.Menucola.MenuButtoncola.MenuItemcola.Modelcola.MultiSlotPickercola.NestedListcola.NestedListBindcola.NestedListNodecola.Nodecola.NumberValidatorcola.Panelcola.PointingLabelcola.Progresscola.Propertycola.Providercola.RadioButtoncola.RadioGroupcola.RangeSlotListcola.Ratingcola.RegExpValidatorcola.RenderableElementcola.RequiredValidatorcola.Revealcola.Ribboncola.Segmentcola.Selectcola.Sidebarcola.Slidercola.SlotListcola.SplitPanecola.Stackcola.Stepscola.Tabcola.TabButtoncola.Tablecola.TableColumncola.TableContentColumncola.TableDataColumncola.TableGroupColumncola.TableSelectColumncola.Tagcola.TimeLinecola.TitleBarcola.Togglecola.Treecola.TreeNodecola.TreeNodeBindcola.UrlValidatorcola.Validatorcola.Widgetcola.breadcrumb.Sectioncola.buttonGroup.Separatorcola.steps.Stepcola.tab.AbstractTabButtoncola.utilcola.util.KeyedArray

cola.util

Cola中各种工具方法的命名空间

trim取出字符串两端的空字符cola.util
Parameters:
  • strstring

    字符串

Returns:string
capitalize将一个字符串的首字符转换成大写cola.util
Parameters:
  • strstring

    字符串

Returns:string
isSimpleValue判断一个值是否简单数据类型cola.util
Parameters:
  • valueany

Returns:boolean
即该值为string、number、boolean、Date,而不是object、array或其他的prototype实例。
concatUrl将一组url片段连接成一个url,该方法可以自动处理连接时的“/”分割符,避免遗漏或重复。cola.util
Parameters:
  • part...string

    url片段

Returns:string
addClass为dom添加class,支持semantic连写模式cola.util
Parameters:
  • domHTMLElement

  • valuestring

  • continuousboolean

    是否连续

Returns:void
removeClass删除dom class,支持semantic连写模式cola.util
Parameters:
  • domHTMLElement

  • valuestring

  • continuousboolean

    是否连写

Returns:void
toggleClass与jqeury的toggleClass 功能类似,不过支持了semantic连写模式cola.util
Parameters:
  • domHTMLElement

  • valuestring

  • stateValboolean

    状态

  • continuousboolean

    是否连续

Returns:void
hasClass判断class的存在性cola.util
Parameters:
  • domHTMLElement

  • classNamestring

Returns:void
typeOf判断对象类型,跨域了window scope。cola.util
Parameters:
  • objany

  • typestring

Returns:void